diff options
| author | Manuel Klimek <klimek@google.com> | 2012-12-10 16:13:06 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2012-12-10 16:13:06 +0000 |
| commit | dd1ff5ece09e0c82d04e038596320b9aad09efd7 (patch) | |
| tree | fa1b73c436a1e79e971af29df698dcea4fc28f23 /clang | |
| parent | af5a108ea888c71cc968a0bca179fa7c341f64ab (diff) | |
| download | bcm5719-llvm-dd1ff5ece09e0c82d04e038596320b9aad09efd7.tar.gz bcm5719-llvm-dd1ff5ece09e0c82d04e038596320b9aad09efd7.zip | |
Clarifying comments for the MatchFinder and matchesNames matcher.
llvm-svn: 169737
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/ASTMatchers/ASTMatchFinder.h | 4 | ||||
| -rw-r--r-- | clang/include/clang/ASTMatchers/ASTMatchers.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/clang/include/clang/ASTMatchers/ASTMatchFinder.h b/clang/include/clang/ASTMatchers/ASTMatchFinder.h index 30b4050e1c8..3d1c13f85c2 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchFinder.h +++ b/clang/include/clang/ASTMatchers/ASTMatchFinder.h @@ -56,6 +56,10 @@ namespace ast_matchers { /// that will trigger the callbacks specified via addMatcher(...) when a match /// is found. /// +/// The order of matches is guaranteed to be equivalent to doing a pre-order +/// traversal on the AST, and applying the matchers in the order in which they +/// were added to the MatchFinder. +/// /// See ASTMatchers.h for more information about how to create matchers. /// /// Not intended to be subclassed. diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 71ce10f8932..f9b072f5038 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -1237,8 +1237,8 @@ AST_MATCHER_P(NamedDecl, hasName, std::string, Name) { } } -/// \brief Matches NamedDecl nodes whose full names partially match the -/// given RegExp. +/// \brief Matches NamedDecl nodes whose fully qualified names contain +/// a substring matched by the given RegExp. /// /// Supports specifying enclosing namespaces or classes by /// prefixing the name with '<enclosing>::'. Does not match typedefs |

