r174862 - Do not use VariadicDynCastAllOfMatcher where VariadicAllOfMatcher works.

Manuel Klimek klimek at google.com
Sun Feb 10 23:45:01 PST 2013


Author: klimek
Date: Mon Feb 11 01:45:01 2013
New Revision: 174862

URL: http://llvm.org/viewvc/llvm-project?rev=174862&view=rev
Log:
Do not use VariadicDynCastAllOfMatcher where VariadicAllOfMatcher works.

Modified:
    cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h

Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h?rev=174862&r1=174861&r2=174862&view=diff
==============================================================================
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h (original)
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Mon Feb 11 01:45:01 2013
@@ -142,7 +142,7 @@ inline internal::PolymorphicMatcherWithP
 ///     friend X;
 ///   };
 /// \endcode
-const internal::VariadicDynCastAllOfMatcher<Decl, Decl> decl;
+const internal::VariadicAllOfMatcher<Decl> decl;
 
 /// \brief Matches a declaration of anything that could have a name.
 ///
@@ -453,7 +453,7 @@ const internal::VariadicDynCastAllOfMatc
 /// \endcode
 /// stmt()
 ///   matches both the compound statement '{ ++a; }' and '++a'.
-const internal::VariadicDynCastAllOfMatcher<Stmt, Stmt> stmt;
+const internal::VariadicAllOfMatcher<Stmt> stmt;
 
 /// \brief Matches declaration statements.
 ///
@@ -1100,10 +1100,10 @@ const internal::VariadicDynCastAllOfMatc
 const internal::VariadicAllOfMatcher<QualType> qualType;
 
 /// \brief Matches \c Types in the clang AST.
-const internal::VariadicDynCastAllOfMatcher<Type, Type> type;
+const internal::VariadicAllOfMatcher<Type> type;
 
 /// \brief Matches \c TypeLocs in the clang AST.
-const internal::VariadicDynCastAllOfMatcher<TypeLoc, TypeLoc> typeLoc;
+const internal::VariadicAllOfMatcher<TypeLoc> typeLoc;
 
 /// \brief Matches if any of the given matchers matches.
 ///





More information about the cfe-commits mailing list