|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 1079 cxxConstructorDecl;
References
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 4025 if (expr(anyOf(cxxConstructExpr(hasDeclaration(cxxConstructorDecl(
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 170 REGISTER_MATCHER(cxxConstructorDecl);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp 70 hasMethod(cxxConstructorDecl(isMoveConstructor(), unless(isDeleted()))),
72 unless(anyOf(hasMethod(cxxConstructorDecl(isCopyConstructor(),
tools/clang/tools/extra/clang-tidy/bugprone/CopyConstructorInitCheck.cpp 26 cxxConstructorDecl(
31 cxxConstructorDecl(isDefaultConstructor())))))),
tools/clang/tools/extra/clang-tidy/bugprone/ExceptionEscapeCheck.cpp 60 cxxConstructorDecl(isMoveConstructor()),
tools/clang/tools/extra/clang-tidy/bugprone/ForwardingReferenceOverloadCheck.cpp 76 cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/bugprone/ThrowKeywordMissingCheck.cpp 24 cxxConstructorDecl(hasAnyConstructorInitializer(anything()));
tools/clang/tools/extra/clang-tidy/bugprone/UndelegatedConstructorCheck.cpp 65 cxxConstructorDecl(ofClass(cxxRecordDecl().bind("parent")))),
67 cxxConstructExpr(hasDeclaration(cxxConstructorDecl(ofClass(
tools/clang/tools/extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp 55 hasDescendant(cxxConstructExpr(hasDeclaration(cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/bugprone/VirtualNearMissCheck.cpp 223 unless(anyOf(isOverride(), isImplicit(), cxxConstructorDecl(),
tools/clang/tools/extra/clang-tidy/cert/StaticObjectExceptionCheck.cpp 31 cxxConstructorDecl(unless(isNoThrow())).bind("func")))),
tools/clang/tools/extra/clang-tidy/cert/ThrownExceptionTypeCheck.cpp 26 cxxConstructExpr(hasDeclaration(cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp 110 has(cxxConstructorDecl(forEachConstructorInitializer(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp 267 cxxConstructorDecl(isDefinition(),
278 anyOf(has(cxxConstructorDecl(isDefaultConstructor(), isDefaulted(),
280 unless(has(cxxConstructorDecl()))),
287 hasDeclaration(cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp 46 hasParent(cxxConstructorDecl(ofClass(equalsBoundNode("DerivedDecl"))));
58 hasDeclaration(cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp 43 has(cxxConstructorDecl(isCopyConstructor(), unless(isImplicit()))
48 has(cxxConstructorDecl(isMoveConstructor(), unless(isImplicit()))
tools/clang/tools/extra/clang-tidy/fuchsia/StaticallyConstructedObjectsCheck.cpp 42 hasDeclaration(cxxConstructorDecl(isConstexpr())),
tools/clang/tools/extra/clang-tidy/google/ExplicitConstructorCheck.cpp 27 cxxConstructorDecl(unless(anyOf(isImplicit(), // Compiler-generated.
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.cpp 139 cxxConstructorDecl(
158 hasDeclaration(cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/modernize/ReturnBracedInitListCheck.cpp 29 unless(anyOf(hasDeclaration(cxxConstructorDecl(isExplicit())),
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp 207 cxxConstructorDecl(
221 cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.cpp 63 auto IsCtorOfSmartPtr = hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName(
81 auto IsPrivateCtor = hasDeclaration(cxxConstructorDecl(isPrivate()));
108 hasDeclaration(cxxConstructorDecl(ofClass(hasAnyName(
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp 77 cxxConstructorDecl(forEachConstructorInitializer(cxxCtorInitializer(
81 hasDeclaration(cxxConstructorDecl(isCopyConstructor())),
95 cxxConstructorDecl(forEachConstructorInitializer(cxxCtorInitializer(
101 hasDeclaration(cxxConstructorDecl(isCopyConstructor())),
217 cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDeleteCheck.cpp 33 anyOf(cxxConstructorDecl(anyOf(isDefaultConstructor(),
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 93 hasDeclaration(cxxConstructorDecl(isDefaultConstructor())));
tools/clang/tools/extra/clang-tidy/performance/MoveConstructorInitCheck.cpp 36 cxxConstructorDecl(
41 cxxConstructorDecl(isCopyConstructor()).bind("ctor")))))
tools/clang/tools/extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp 27 cxxMethodDecl(anyOf(cxxConstructorDecl(), hasOverloadedOperatorName("=")),
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp 69 hasDeclaration(cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp 72 hasDeclaration(cxxConstructorDecl(isDefaultConstructor())));
79 hasDeclaration(cxxConstructorDecl(isCopyConstructor())),
82 hasDeclaration(cxxConstructorDecl(isMoveConstructor())),
tools/clang/tools/extra/clang-tidy/readability/ConvertMemberFunctionsToStatic.cpp 80 hasTrivialBody(), isOverloadedOperator(), cxxConstructorDecl(),
tools/clang/tools/extra/clang-tidy/readability/DeletedDefaultCheck.cpp 28 cxxMethodDecl(anyOf(cxxConstructorDecl().bind("constructor"),
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp 240 Finder->addMatcher(cxxConstructorDecl().bind("classRef"), this);
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 310 auto bitfieldConstruct = cxxConstructorDecl(hasDescendant(cxxCtorInitializer(
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp 24 Finder->addMatcher(cxxConstructorDecl().bind("Ctor"), this);
tools/clang/tools/extra/clang-tidy/readability/RedundantMemberInitCheck.cpp 29 hasDeclaration(cxxConstructorDecl(hasParent(
34 cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/utils/DeclRefExprUtils.cpp 147 cxxConstructExpr(UsedAsConstRefArg, hasDeclaration(cxxConstructorDecl(
tools/clang/tools/extra/clang-tidy/zircon/TemporaryObjectsCheck.cpp 32 cxxTemporaryObjectExpr(hasDeclaration(cxxConstructorDecl(hasParent(
40 hasDeclaration(cxxConstructorDecl(
tools/clang/unittests/AST/ASTImporterTest.cpp 2492 LastDeclMatcher<CXXConstructorDecl>().match(FromTU, cxxConstructorDecl());
3049 testImportOf(cxxConstructorDecl(isDefaultConstructor()));
3053 testImportOf(cxxConstructorDecl(isCopyConstructor()));
3057 testImportOf(cxxConstructorDecl(isMoveConstructor()));
3076 testNoImportOf(cxxConstructorDecl(isDefaultConstructor()), Code);
3083 testNoImportOf(cxxConstructorDecl(isDefaultConstructor()), Code);
3090 testNoImportOf(cxxConstructorDecl(isDefaultConstructor()), Code);
3453 cxxConstructorDecl(hasParameter(0, varDecl(hasType(asString("int")))),
5470 ImportedX, cxxConstructorDecl(hasName("X"), unless(isImplicit())));
5472 ImportedX, cxxConstructorDecl(hasName("X"), unless(isImplicit())));
tools/clang/unittests/AST/DeclPrinterTest.cpp 499 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
508 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
517 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
526 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
536 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
546 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
556 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
565 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
574 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
583 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
592 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
602 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
612 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"),
tools/clang/unittests/AST/SourceLocationTest.cpp 526 Code, friendDecl(has(cxxConstructorDecl(ofClass(hasName("B")))))));
544 Code, friendDecl(has(cxxConstructorDecl(ofClass(hasName("B")))))));
tools/clang/unittests/AST/StructuralEquivalenceTest.cpp 255 cxxConstructorDecl(),
496 functionDecl(hasName("foo")), cxxConstructorDecl(hasName("foo")));
503 cxxConstructorDecl(hasName("X")));
511 cxxConstructorDecl(hasName("X")));
519 cxxConstructorDecl(hasName("X")));
864 get<0>(Decls), cxxConstructorDecl(hasName("foo")));
866 get<1>(Decls), cxxConstructorDecl(hasName("foo")));
874 get<0>(Decls), cxxConstructorDecl(hasName("foo")));
876 get<1>(Decls), cxxConstructorDecl(hasName("foo")));
931 get<0>(Decls), cxxConstructorDecl(hasName("foo<b>")));
933 get<1>(Decls), cxxConstructorDecl(hasName("foo<b>")));
941 get<0>(Decls), cxxConstructorDecl(hasName("foo<b>")));
943 get<1>(Decls), cxxConstructorDecl(hasName("foo<b>")));
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp 1267 cxxConstructorDecl(isImplicit())));
1270 cxxConstructorDecl(isImplicit())));
1272 cxxConstructorDecl(unless(isImplicit()))));
1280 cxxConstructorDecl(isExplicit())));
1282 cxxConstructorDecl(isExplicit())));
1285 cxxConstructorDecl(isExplicit()), false, "-std=c++2a"));
1287 cxxConstructorDecl(isExplicit()), true,
1290 cxxConstructorDecl(isExplicit()), false,
1320 cxxConstructorDecl(isDefaultConstructor(), unless(isImplicit()))));
1323 cxxConstructorDecl(isCopyConstructor(), unless(isImplicit()))));
1326 cxxConstructorDecl(isMoveConstructor(), unless(isImplicit()))));
1330 cxxConstructorDecl(isDefaultConstructor(), unless(isImplicit()))));
1333 cxxConstructorDecl(isCopyConstructor(), unless(isImplicit()))));
1336 cxxConstructorDecl(isMoveConstructor(), unless(isImplicit()))));
1340 cxxConstructorDecl(isDefaultConstructor(), unless(isImplicit()))));
1343 cxxConstructorDecl(isCopyConstructor(), unless(isImplicit()))));
1346 cxxConstructorDecl(isMoveConstructor(), unless(isImplicit()))));
1351 cxxConstructorDecl(isUserProvided())));
1353 cxxConstructorDecl(isUserProvided())));
1355 cxxConstructorDecl(isUserProvided())));
1357 matches("struct S { S(); };", cxxConstructorDecl(isUserProvided())));
1359 cxxConstructorDecl(isUserProvided())));
1364 cxxConstructorDecl(isDelegatingConstructor())));
1366 cxxConstructorDecl(isDelegatingConstructor())));
1369 cxxConstructorDecl(isDelegatingConstructor(), parameterCountIs(0))));
1372 cxxConstructorDecl(isDelegatingConstructor(), parameterCountIs(1))));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp 1102 hasDeclaration(cxxConstructorDecl(
1106 hasDeclaration(cxxConstructorDecl(
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp 989 cxxConstructorDecl(ofClass(hasName("Foo")))));
991 cxxConstructorDecl(ofClass(hasName("Bar")))));
1007 cxxConstructorDecl(hasAnyConstructorInitializer(anything()))));
1013 cxxConstructorDecl(hasAnyConstructorInitializer(anything()))));
1026 EXPECT_TRUE(matches(Code, cxxConstructorDecl(hasAnyConstructorInitializer(
1028 EXPECT_TRUE(matches(Code, cxxConstructorDecl(hasAnyConstructorInitializer(
1030 EXPECT_TRUE(matches(Code, cxxConstructorDecl(hasAnyConstructorInitializer(
1032 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(hasAnyConstructorInitializer(
1042 EXPECT_TRUE(matches(Code, cxxConstructorDecl(hasAnyConstructorInitializer(
1044 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(hasAnyConstructorInitializer(
1056 EXPECT_TRUE(matches(Code, cxxConstructorDecl(hasAnyConstructorInitializer(
1058 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(hasAnyConstructorInitializer(
1060 EXPECT_TRUE(matches(Code, cxxConstructorDecl(hasAnyConstructorInitializer(
1074 EXPECT_TRUE(matches(Code, cxxConstructorDecl(allOf(
1077 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(allOf(
1080 EXPECT_TRUE(matches(Code, cxxConstructorDecl(allOf(
1083 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(allOf(
1845 cxxConstructorDecl(hasExplicitSpecifier(constantExpr(has(cxxBoolLiteral())))),
1849 cxxConstructorDecl(hasExplicitSpecifier(constantExpr(has(cxxBoolLiteral())))),
1853 cxxConstructorDecl(hasExplicitSpecifier(constantExpr(has(cxxBoolLiteral())))),
1876 cxxConstructorDecl(forEachConstructorInitializer(cxxCtorInitializer()))));
2013 has(cxxConstructorDecl(
2061 cxxConstructorDecl(hasName("::A::A"), decl().bind("x"),
2180 cxxConstructorDecl(