diff options
| -rwxr-xr-x | clang/docs/tools/dump_ast_matchers.py | 2 | ||||
| -rw-r--r-- | clang/include/clang/ASTMatchers/ASTMatchers.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/clang/docs/tools/dump_ast_matchers.py b/clang/docs/tools/dump_ast_matchers.py index ab7738fd768..d38977548fd 100755 --- a/clang/docs/tools/dump_ast_matchers.py +++ b/clang/docs/tools/dump_ast_matchers.py @@ -237,7 +237,7 @@ def act_on_decl(declaration, comment, allowed_types): (?:,\s*([^\s,]+)\s* ,\s*([^\s,]+)\s*)? (?:,\s*\d+\s*)? - \)\s*{\s*$""", declaration, flags=re.X) + \)\s*{""", declaration, flags=re.X) if m: p, n, result, name = m.groups()[0:4] args = m.groups()[4:] diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 2ec761068d1..f1eabdec6a9 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -3581,9 +3581,7 @@ AST_POLYMORPHIC_MATCHER_P(parameterCountIs, /// \code /// void nope(); /// \endcode -AST_MATCHER(FunctionDecl, isNoReturn) { - return Node.isNoReturn(); -} +AST_MATCHER(FunctionDecl, isNoReturn) { return Node.isNoReturn(); } /// \brief Matches the return type of a function declaration. /// |

