]> granicus.if.org Git - clang/commitdiff
Clarifying comments for the MatchFinder and matchesNames matcher.
authorManuel Klimek <klimek@google.com>
Mon, 10 Dec 2012 16:13:06 +0000 (16:13 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 10 Dec 2012 16:13:06 +0000 (16:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169737 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/ASTMatchers/ASTMatchFinder.h
include/clang/ASTMatchers/ASTMatchers.h

index 30b4050e1c81c1960af82dfacb9f56807586ba61..3d1c13f85c2179dc17c8326e6ae890599e33cfdb 100644 (file)
@@ -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.
index 71ce10f89329d84f9e8b5e325c9b6b01b1580d58..f9b072f5038edd963c72fb16f4cec626f1fe6ce4 100644 (file)
@@ -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