[cfe-commits] r169737 - in /cfe/trunk/include/clang/ASTMatchers: ASTMatchFinder.h ASTMatchers.h
klimek at google.com
Mon Dec 10 08:13:06 PST 2012
Date: Mon Dec 10 10:13:06 2012
New Revision: 169737
Clarifying comments for the MatchFinder and matchesNames matcher.
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchFinder.h (original)
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchFinder.h Mon Dec 10 10:13:06 2012
@@ -56,6 +56,10 @@
/// 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.
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h (original)
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Mon Dec 10 10:13:06 2012
@@ -1237,8 +1237,8 @@
-/// \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
More information about the cfe-commits