| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | StringviewNullptrCheck.cpp | 117 unless(isListInitialization())))), in StringviewNullptrCheckImpl() 118 unless(isDirectInitialization())), in StringviewNullptrCheckImpl() 127 unless(isDirectInitialization())), in StringviewNullptrCheckImpl() 135 unless(isListInitialization()))), in StringviewNullptrCheckImpl() 155 unless(isListInitialization()))))), in StringviewNullptrCheckImpl() 172 unless(isListInitialization())))), in StringviewNullptrCheckImpl() 202 unless(isListInitialization()))), in StringviewNullptrCheckImpl() 203 unless(isArray()), unless(hasAnyPlacementArg(anything()))), in StringviewNullptrCheckImpl() 210 unless(isArray()), unless(hasAnyPlacementArg(anything()))), in StringviewNullptrCheckImpl() 217 unless(cxxOperatorCallExpr())), in StringviewNullptrCheckImpl() [all …]
|
| H A D | UnhandledSelfAssignmentCheck.cpp | 34 isDefinition(), unless(anyOf(isDeleted(), isImplicit(), isDefaulted()))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 51 ofClass(cxxRecordDecl(unless(hasAncestor(classTemplateDecl())))), in registerMatchers() 71 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 95 unless(HasNonTemplateSelfCopy), in registerMatchers() 96 unless(HasTemplateSelfCopy), in registerMatchers()
|
| H A D | ForwardDeclarationNamespaceCheck.cpp | 36 unless(isImplicit()), unless(hasAncestor(cxxRecordDecl())), in registerMatchers() 37 unless(isInstantiated()), unless(IsInSpecialization), in registerMatchers() 38 unless(classTemplateSpecializationDecl())) in registerMatchers()
|
| H A D | SizeofContainerCheck.cpp | 21 expr(unless(isInTemplateInstantiation()), in registerMatchers() 25 unless(matchesName("^::std::(bitset|array)$")), in registerMatchers() 30 unless(hasAncestor(binaryOperator( in registerMatchers()
|
| H A D | SignedCharMisuseCheck.cpp | 49 qualType(isAnyCharacter(), isSignedInteger(), unless(IntTypedef)))); in charCastExpression() 52 isAnyCharacter(), unless(isSignedInteger()), unless(IntTypedef)))); in charCastExpression() 73 qualType(isInteger(), unless(isAnyCharacter()), unless(booleanType())) in registerMatchers()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | pragma-attribute-strict-subjects.c | 20 …__((annotate("subRuleContradictions3"))), apply_to = any(variable, variable(unless(is_parameter)))) 42 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(record(unless(is_union)… 46 … push (__attribute__((abi_tag("a"))), apply_to = any(function, variable, record(unless(is_union)))) 50 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(variable, record(unless… 54 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(function, record(unless… 63 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(function, record(unless… 77 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(record(unless(is_union)… 85 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(variable, record(unless… 89 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(record(unless(is_union)… 93 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(record(unless(is_union)… [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | OwningMemoryCheck.cpp | 64 cxxDeleteExpr(hasDescendant(declRefExpr(unless(ConsideredOwner)) in registerMatchers() 79 unless(ignoringImpCasts(ConsideredOwner)), in registerMatchers() 89 hasRHS(unless(ConsideredOwner))) in registerMatchers() 97 varDecl(hasInitializer(unless(ConsideredOwner)), IsOwnerType) in registerMatchers() 108 allOf(unless(ConsideredOwner), unless(parenListExpr())))) in registerMatchers() 120 hasLHS(unless(IsOwnerType)), in registerMatchers() 129 unless(IsOwnerType))) in registerMatchers() 137 expr(unless(ConsideredOwner)).bind("expected_owner_argument"), in registerMatchers() 145 parmVarDecl(unless(IsOwnerType)) in registerMatchers() 154 unless(returns(qualType(hasDeclaration(OwnerDecl))))) in registerMatchers() [all …]
|
| H A D | ProBoundsArrayToPointerDecayCheck.cpp | 60 unless(hasParent(arraySubscriptExpr())), in registerMatchers() 61 unless(hasParentIgnoringImpCasts(explicitCastExpr())), in registerMatchers() 62 unless(isInsideOfRangeBeginEndStmt()), in registerMatchers() 63 unless(hasSourceExpression(ignoringParens(stringLiteral()))), in registerMatchers() 64 unless(hasSourceExpression(ignoringParens(conditionalOperator( in registerMatchers()
|
| H A D | InitVariablesCheck.cpp | 42 varDecl(unless(hasInitializer(anything())), unless(isInstantiated()), in registerMatchers() 43 isLocalVarDecl(), unless(isStaticLocal()), isDefinition(), in registerMatchers() 44 unless(hasParent(cxxCatchStmt())), in registerMatchers() 47 unless(equalsBoundNode(BadDecl))) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | DontModifyStdNamespaceCheck.cpp | 47 unless(hasParent(namespaceDecl()))) in registerMatchers() 50 hasUnqualifiedDesugaredType(tagType(unless(hasDeclaration(tagDecl( in registerMatchers() 52 unless(hasParent(namespaceDecl())))))))))); in registerMatchers() 53 auto HasNoProgramDefinedTemplateArgument = unless( in registerMatchers() 80 decl(unless(anyOf(functionDecl(isExplicitTemplateSpecialization()), in registerMatchers() 89 functionDecl(unless(cxxMethodDecl()), isExplicitTemplateSpecialization(), in registerMatchers() 98 unless(isExpansionInSystemHeader())) in registerMatchers()
|
| H A D | StaticObjectExceptionCheck.cpp | 28 unless(anyOf(isConstexpr(), hasType(cxxRecordDecl(isLambda())), in registerMatchers() 31 cxxConstructorDecl(unless(isNoThrow())).bind("func")))), in registerMatchers() 33 functionDecl(unless(isNoThrow())).bind("func")))), in registerMatchers() 35 functionDecl(unless(isNoThrow())).bind("func")))))) in registerMatchers()
|
| H A D | MutatingCopyCheck.cpp | 29 allOf(unless(hasDescendant(expr(unless(MemberExprOrSourceObject)))), in registerMatchers() 39 unless(hasDescendant(expr(unless(MemberExprOrSelf)))), MemberExprOrSelf); in registerMatchers()
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | pragma-attribute.cpp | 12 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = variable(unless(is_param… 15 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any(variable(unless(is_p… 80 …h(__attribute__((annotate("test"))), apply_to = any (function, variable (unless) )) // expected-er… 81 …h(__attribute__((annotate("test"))), apply_to = any (function, variable (unless() )) // expected-e… 83 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any( variable(unless(is_… 84 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any( variable(unless(is_… 85 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any( variable unless is_… 86 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = any( variable(unless is_… 100 …ttribute__((annotate("test"))), apply_to = any( variable(unless(is_parameter)), variable(unless(is… 101 …e("test"))), apply_to = any( variable(unless(is_parameter)), variable(unless(is_parameter)), enum,… [all …]
|
| /llvm-project-15.0.7/clang/test/Misc/ |
| H A D | pragma-attribute-strict-subjects.c | 18 …__((annotate("negatedSubRuleContradictions2"))), apply_to = any(variable(unless(is_parameter)), va… 53 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(function, record(unless… 109 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(record(unless(is_union)… 141 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(variable, record(unless… 157 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(record(unless(is_union)… 173 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(record(unless(is_union)… 190 #pragma clang attribute push (__attribute__((abi_tag("a"))), apply_to = any(record(unless(is_union)…
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantMemberInitCheck.cpp | 31 unless(isDelegatingConstructor()), ofClass(unless(isUnion())), in registerMatchers() 38 unless(isTriviallyDefaultConstructible())))))) in registerMatchers() 40 unless(forField(hasType(isConstQualified()))), in registerMatchers() 41 unless(forField(hasParent(recordDecl(isUnion()))))) in registerMatchers()
|
| H A D | ImplicitBoolConversionCheck.cpp | 264 expr(anyOf(allOf(isMacroExpansion(), unless(isNULLMacroExpansion())), in registerMatchers() 275 unless(ExceptionCases)); in registerMatchers() 289 unless(hasParent( in registerMatchers() 292 unless(ExceptionCases), unless(has(BoolXor)), in registerMatchers() 296 unless(isInTemplateInstantiation()), in registerMatchers() 297 unless(hasAncestor(functionTemplateDecl()))) in registerMatchers() 320 unless(hasParent( in registerMatchers() 324 unless(hasParent(BitfieldConstruct)), in registerMatchers() 328 unless(isInTemplateInstantiation()), in registerMatchers() 329 unless(hasAncestor(functionTemplateDecl())))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | PreferIsaOrDynCastInConditionalsCheck.cpp | 29 allOf(unless(isMacroID()), unless(cxxMemberCallExpr()), in registerMatchers() 38 callExpr(allOf(unless(isMacroID()), unless(cxxMemberCallExpr()), in registerMatchers() 46 unless(isMacroID()), unless(cxxMemberCallExpr()), in registerMatchers() 60 allOf(unless(isExpansionInFileMatching( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseAutoCheck.cpp | 205 return declStmt(unless(has( in makeIteratorDeclMatcher() 206 varDecl(anyOf(unless(hasWrittenNonListInitializer()), in makeIteratorDeclMatcher() 207 unless(hasType(isSugarFor(anyOf( in makeIteratorDeclMatcher() 215 unless(has(varDecl(anyOf( in makeDeclWithNewMatcher() 216 unless(hasInitializer(ignoringParenImpCasts(cxxNewExpr()))), in makeDeclWithNewMatcher() 233 unless(has(varDecl(unless(hasInitializer(explicitCastExpr())))))) in makeDeclWithCastMatcher() 253 return declStmt(unless(has(varDecl( in makeDeclWithTemplateCastMatcher() 254 unless(hasInitializer(ignoringImplicit(TemplateCall))))))) in makeDeclWithTemplateCastMatcher() 263 has(varDecl(unless(isImplicit()))), in makeCombinedMatcher() 265 unless(has(varDecl(anyOf(hasType(autoType()), in makeCombinedMatcher()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ExprMutationAnalyzer.cpp | 110 referenceType(pointee(unless(isConstQualified())))); in __anondd380f730402() 115 pointerType(pointee(unless(isConstQualified())))); in __anondd380f730502() 122 unless(anyOf(hasMethod(cxxConstructorDecl(isCopyConstructor(), in __anondd380f730602() 123 unless(isDeleted()))), in __anondd380f730602() 125 unless(isDeleted())))))); in __anondd380f730602() 213 hasAncestor(typeLoc(unless( in isUnevaluated() 272 const auto NonConstMethod = cxxMethodDecl(unless(isConst())); in findDirectMutation() 312 unless(hasParent(arraySubscriptExpr())), in findDirectMutation() 483 allOf(hasMethod(allOf(hasName("end"), unless(isConst()))), in findRangeLoopMutation() 539 unless(hasParent(declStmt(hasParent( in findReferenceMutation() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | NonPrivateMemberVariablesInClassesCheck.cpp | 26 return hasMethod(unless(anyOf(isStaticStorageClass(), isImplicit()))) in AST_MATCHER() 31 return cxxRecordDecl(has(fieldDecl(unless(isPublic())))) in AST_MATCHER() 64 unless(hasNonPublicMemberVariable())); in registerMatchers() 72 : fieldDecl(unless(isPrivate())); in registerMatchers() 80 unless(ShouldIgnoreRecord), in registerMatchers()
|
| H A D | UnconventionalAssignOperatorCheck.cpp | 23 unless(isConstQualified()), in registerMatchers() 30 cxxMethodDecl(unless(anyOf(isDeleted(), isPrivate(), isImplicit())), in registerMatchers() 38 cxxMethodDecl(IsAssign, unless(HasGoodReturnType)).bind("ReturnType"), in registerMatchers() 42 anyOf(lValueReferenceType(pointee(unless(isConstQualified()))), in registerMatchers() 55 const auto IsBadReturnStatement = returnStmt(unless(has(ignoringParenImpCasts( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | GlobalVariableDeclarationCheck.cpp | 70 varDecl(hasGlobalStorage(), unless(hasType(isConstQualified())), in registerMatchers() 71 unless(isLocalVariable()), unless(matchesName("::g[A-Z]"))) in registerMatchers() 75 unless(isLocalVariable()), in registerMatchers() 76 unless(matchesName("::(k[A-Z])|([A-Z][A-Z0-9])"))) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | FindAllSymbols.cpp | 126 allOf(unless(isImplicit()), unless(isExpansionInMainFile())); in registerMatchers() 137 allOf(HasNSOrTUCtxMatcher, unless(IsInSpecialization), in registerMatchers() 138 unless(ast_matchers::isTemplateInstantiation()), in registerMatchers() 139 unless(isInstantiated()), unless(isFullySpecialized())); in registerMatchers() 156 unless(parmVarDecl())); in registerMatchers() 167 auto Functions = functionDecl(CommonFilter, unless(hasParent(friendDecl())), in registerMatchers() 193 CommonFilter, unless(isInScopedEnum()), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | DurationDivisionCheck.cpp | 31 hasImplicitDestinationType(qualType(unless(isInteger()))), in registerMatchers() 32 unless(hasParent(cxxStaticCastExpr())), in registerMatchers() 33 unless(hasParent(cStyleCastExpr())), in registerMatchers() 34 unless(isInTemplateInstantiation()))), in registerMatchers()
|
| H A D | UpgradeDurationConversionsCheck.cpp | 40 unless(hasTemplateArgument(0, refersToType(builtinType()))), in registerMatchers() 52 unless(hasTemplateArgument(0, refersToType(builtinType()))), in registerMatchers() 64 unless(hasTemplateArgument(0, refersToType(builtinType()))), in registerMatchers() 78 unless(hasTemplateArgument(0, refersToType(builtinType()))), in registerMatchers() 110 unless(hasParent(functionTemplateDecl())))), in registerMatchers()
|