diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index a3c6b13d45ca..3640736d535b 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -100,6 +100,17 @@ recordDecl(decl().bind("id"), hasName("::MyClass"))
Matches constructor initializers. + +Examples matches i(42). + class C { + C() : i(42) {} + int i; + }; +
Matches C++ access specifier declarations. @@ -209,6 +220,16 @@ fieldDecl()
Matches friend declarations. + +Given + class X { friend void foo(); }; +friendDecl() + matches 'friend void foo()'. +
Matches function declarations. @@ -276,6 +297,18 @@ Example matches X, Z
Matches unresolved using value declarations. + +Given + template<typename X> + class C : private X { + using X::x; + }; +unresolvedUsingValueDecl() + matches using X::x
Matches using declarations. @@ -895,6 +928,16 @@ Example matches !a
Matches unresolved constructor call expressions. + +Example matches T(t) in return statement of f + (matcher = unresolvedConstructExpr()) + template <typename T> + void f(const T& t) { return T(t); } +
Matches user defined literal operator call. @@ -1177,6 +1220,16 @@ typedefType()
Matches types nodes representing unary type transformations. + +Given: + typedef __underlying_type(T) type; +unaryTransformType() + matches "__underlying_type(T)" +
Matches C arrays with a specified size that is not an integer-constant-expression. @@ -1456,6 +1509,16 @@ typedefType()
Matches types nodes representing unary type transformations. + +Given: + typedef __underlying_type(T) type; +unaryTransformType() + matches "__underlying_type(T)" +
Matches C arrays with a specified size that is not an integer-constant-expression. @@ -2542,6 +2605,16 @@ Usable as: Matcher<CXXConstructorDecl>
Matches each constructor initializer in a constructor definition. + +Given + class A { A() : i(42), j(42) {} int i; int j; }; +constructorDecl(forEachConstructorInitializer(forField(decl().bind("x")))) + will trigger two matches, binding for 'i' and 'j' respectively. +
Matches a constructor initializer. @@ -2600,7 +2673,7 @@ FIXME: Overload to allow directly matching types?- + Matcher<CXXMemberCallExpr> thisPointerType Matcher<Decl> InnerMatcher Matcher<CXXMemberCallExpr> thisPointerType Matcher<Decl> InnerMatcher @@ -2663,7 +2736,7 @@ match Base. Overloaded to match the type's declaration.
Matches if the call expression's callee's declaration matches the given matcher. @@ -2989,8 +3062,8 @@ actual casts "explicit" casts.)
Overloaded to match the declaration of the expression's or value ++ Matcher<Expr> hasType Matcher<Decl> InnerMatcher + Overloaded to match the declaration of the expression's or value declaration's type. In case of a value declaration (for example a variable declaration), @@ -3404,12 +3477,12 @@ Usable as: Matcher<QualType>pointsTo Matcher<Decl> InnerMatcher Matcher<QualType> pointsTo Matcher<Decl> InnerMatcher - Overloaded to match the pointee type's declaration.+ Matcher<QualType> references Matcher<Decl> InnerMatcher Matcher<QualType> references Matcher<Decl> InnerMatcher @@ -3586,8 +3659,8 @@ usingDecl(hasAnyUsingShadowDecl(hasTargetDecl(functionDecl()))) matches using X::b but not using X::a Overloaded to match the referenced type's declaration.
Overloaded to match the declaration of the expression's or value ++ Matcher<ValueDecl> hasType Matcher<Decl> InnerMatcher Overloaded to match the declaration of the expression's or value declaration's type. In case of a value declaration (for example a variable declaration),