Home | History | Annotate | Download | only in ASTMatchers

Lines Matching refs:cxxRecordDecl

17 //    cxxRecordDecl(hasName("MyClass"))
28 // cxxRecordDecl(hasName("MyClass"), has(id("child", recordDecl())))
196 /// (matcher = cxxRecordDecl(isExpansionInMainFile())
217 /// (matcher = cxxRecordDecl(isExpansionInSystemHeader())
242 /// (matcher = cxxRecordDecl(isExpansionInFileMatching("AST.*"))
363 CXXRecordDecl> cxxRecordDecl;
2170 /// cxxRecordDecl(eachOf(has(fieldDecl(hasName("a")).bind("v")),
2325 /// \c cxxRecordDecl(hasMethod(hasOverloadedOperatorName("*")))
2359 AST_MATCHER_P(CXXRecordDecl, isDerivedFrom,
2365 AST_MATCHER_P_OVERLOAD(CXXRecordDecl, isDerivedFrom, std::string, BaseName, 1) {
2372 AST_MATCHER_P_OVERLOAD(CXXRecordDecl, isSameOrDerivedFrom,
2374 return Matcher<CXXRecordDecl>(anyOf(Base, isDerivedFrom(Base)))
2380 AST_MATCHER_P_OVERLOAD(CXXRecordDecl, isSameOrDerivedFrom, std::string,
2395 /// \c cxxRecordDecl(hasMethod(hasName("func"))) matches the declaration of
2397 AST_MATCHER_P(CXXRecordDecl, hasMethod, internal::Matcher<CXXMethodDecl>,
2410 /// \c cxxRecordDecl(isLambda()) matches the implicit class declaration of
2412 AST_MATCHER(CXXRecordDecl, isLambda) {
2420 /// (matcher = cxxRecordDecl(has(cxxRecordDecl(hasName("X")))
2441 /// (matcher = cxxRecordDecl(hasDescendant(cxxRecordDecl(hasName("X")))))
2458 /// (matcher = cxxRecordDecl(forEach(cxxRecordDecl(hasName("X")))
2478 /// (matcher = cxxRecordDecl(forEachDescendant(cxxRecordDecl(hasName("X")))))
2491 /// cxxRecordDecl(forEachDescendant(cxxRecordDecl(
2492 /// forEachDescendant(cxxRecordDecl())
2513 /// cxxRecordDecl(hasName("::A"),
2514 /// findAll(cxxRecordDecl(isDefinition()).bind("m")))
2559 /// Example matches Y (matcher = cxxRecordDecl(unless(hasName("X"))))
2594 /// In this matcher, the decl will match the CXXRecordDecl of class X.
2634 /// (matcher = cxxMemberCallExpr(on(hasType(cxxRecordDecl(hasName("Y"))))))
2786 /// Example matches x (matcher = expr(hasType(cxxRecordDecl(hasName("X")))))
2787 /// and z (matcher = varDecl(hasType(cxxRecordDecl(hasName("X")))))
2806 /// declaration "X x;", cxxRecordDecl(hasName("X")) matches the declaration of
2807 /// X, while varDecl(hasType(cxxRecordDecl(hasName("X")))) matches the
2810 /// Example matches x (matcher = expr(hasType(cxxRecordDecl(hasName("X")))))
2811 /// and z (matcher = varDecl(hasType(cxxRecordDecl(hasName("X")))))
2860 /// cxxRecordDecl(hasName("Y")))))))
2899 /// (matcher = varDecl(hasType(references(cxxRecordDecl(hasName("X"))))))
3256 /// cxxRecordDecl(has(cxxConstructorDecl(
3275 /// cxxRecordDecl(has(cxxConstructorDecl(hasAnyConstructorInitializer(
3295 /// cxxRecordDecl(has(cxxConstructorDecl(hasAnyConstructorInitializer(
3721 /// cxxRecordDecl(
4157 internal::Matcher<CXXRecordDecl>, InnerMatcher) {
4158 const CXXRecordDecl *Parent = Node.getParent();
4252 AST_POLYMORPHIC_SUPPORTED_TYPES(CXXRecordDecl,
4528 /// memberExpr(hasObjectExpression(hasType(cxxRecordDecl(hasName("X")))))))
4580 /// cxxRecordDecl(hasName("::X"), isTemplateInstantiation())
4588 /// cxxRecordDecl(hasName("::X"), isTemplateInstantiation())
4591 /// Usable as: Matcher<FunctionDecl>, Matcher<VarDecl>, Matcher<CXXRecordDecl>
4594 CXXRecordDecl)) {
4612 auto IsInstantiation = decl(anyOf(cxxRecordDecl(isTemplateInstantiation()),
4633 hasAncestor(decl(anyOf(cxxRecordDecl(isTemplateInstantiation()),
4648 /// Usable as: Matcher<FunctionDecl>, Matcher<VarDecl>, Matcher<CXXRecordDecl>
4651 CXXRecordDecl)) {
5337 /// hasDeclaration(cxxRecordDecl(hasName("A")))
5356 /// hasDeclaration(cxxRecordDecl(hasName("A")))))))