Home
last modified time | relevance | path

Searched refs:referenceType (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConstCorrectnessCheck.cpp68 referenceType(anyOf(rValueReferenceType(), unless(isSpelledAsLValue())))); in registerMatchers()
75 hasType(referenceType(pointee(hasCanonicalType(templateTypeParmType())))), in registerMatchers()
76 hasType(referenceType(pointee(substTemplateTypeParmType())))); in registerMatchers()
79 anyOf(hasType(autoType()), hasType(referenceType(pointee(autoType()))), in registerMatchers()
83 hasType(hasCanonicalType(referenceType(pointee(functionType())))); in registerMatchers()
H A DUnconventionalAssignOperatorCheck.cpp28 referenceType(pointee(hasDeclaration(equalsBoundNode("class"))))))); in registerMatchers()
41 const auto BadSelf = qualType(hasCanonicalType(referenceType( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DAvoidNonConstGlobalVariablesCheck.cpp29 hasType(referenceType())))); // References can't be changed, only the in registerMatchers()
33 varDecl(hasGlobalStorage(), hasType(referenceType()), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUnhandledExceptionAtNewCheck.cpp51 auto BadAllocReferenceType = referenceType(pointee(BadAllocType)); in registerMatchers()
52 auto ExceptionReferenceType = referenceType(pointee(ExceptionType)); in registerMatchers()
H A DUnhandledSelfAssignmentCheck.cpp39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DForRangeCopyCheck.cpp41 unless(anyOf(hasCanonicalType(anyOf(referenceType(), pointerType())), in registerMatchers()
47 cxxMethodDecl(returns(unless(hasCanonicalType(referenceType())))))); in registerMatchers()
H A DUnnecessaryValueParamCheck.cpp69 unless(anyOf(hasCanonicalType(referenceType()), in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp71 varDecl(hasType(hasCanonicalType(referenceType()))).bind(MatchRef)))), in getWidenedLoopState()
H A DLoopUnrolling.cpp117 allOf(hasType(referenceType()), in assignedToRef()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp1692 notMatches(Fragment, varDecl(hasName("ptr"), hasType(referenceType())))); in TEST_P()
1707 notMatches(Fragment, varDecl(hasName("ptr"), hasType(referenceType())))); in TEST_P()
1721 matches(Fragment, varDecl(hasName("ref"), hasType(referenceType())))); in TEST_P()
1740 matches(Fragment, varDecl(hasName("ref"), hasType(referenceType())))); in TEST_P()
1758 notMatches(Fragment, varDecl(hasName("a"), hasType(referenceType())))); in TEST_P()
1760 notMatches(Fragment, varDecl(hasName("b"), hasType(referenceType())))); in TEST_P()
1762 matches(Fragment, varDecl(hasName("c"), hasType(referenceType())))); in TEST_P()
1768 matches(Fragment, varDecl(hasName("d"), hasType(referenceType())))); in TEST_P()
1774 matches(Fragment, varDecl(hasName("e"), hasType(referenceType())))); in TEST_P()
H A DASTMatchersTraversalTest.cpp1126 varDecl(hasType(qualType(referenceType()))))); in TEST()
1131 varDecl(hasType(qualType(hasCanonicalType(referenceType())))))); in TEST()
5414 referenceType(pointee(builtinType())))); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DMatchers.h43 return referenceType(pointee(qualType(isConstQualified()))); in AST_MATCHER_FUNCTION()
H A DDeclRefExprUtils.cpp62 unless(anyOf(referenceType(), pointerType(), in constReferenceDeclRefExprs()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp110 referenceType(pointee(unless(isConstQualified())))); in __anondd380f730402()
457 hasUnqualifiedDesugaredType(referenceType(pointee(arrayType()))))))); in findRangeLoopMutation()
487 hasSingleDecl(varDecl(hasType(hasUnqualifiedDesugaredType(referenceType( in findRangeLoopMutation()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DPassByValueCheck.cpp55 return qualType(unless(anyOf(referenceType(), isConstQualified()))); in nonConstValueType()
H A DLoopConvertCheck.cpp189 returns(qualType(unless(hasCanonicalType(referenceType()))) in makeIteratorLoopMatcher()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp171 optionalOrAliasType(), referenceType(pointee(optionalOrAliasType())))))); in isCallReturningOptional()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp534 REGISTER_MATCHER(referenceType); in RegistryMaps()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp1053 const AstTypeMatcher<ReferenceType> referenceType; variable
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7092 extern const AstTypeMatcher<ReferenceType> referenceType;