/external/llvm-project/clang/test/Sema/ |
D | pragma-attribute-strict-subjects.c | 20 …__((annotate("subRuleContradictions3"))), apply_to = any(variable, variable(unless(is_parameter)))) 25 …SubRuleContradictions1"))), apply_to = any(variable(is_parameter), variable(unless(is_parameter)))) 30 …__((annotate("negatedSubRuleContradictions2"))), apply_to = any(variable(unless(is_parameter)), va… 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… 58 …ribute__((abi_tag("a"))), apply_to = any(enum_constant, function, record(unless(is_union)), variab… 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)… [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | OwningMemoryCheck.cpp | 73 cxxDeleteExpr(hasDescendant(declRefExpr(unless(ConsideredOwner)) in registerMatchers() 89 expr(unless(ignoringImpCasts(ConsideredOwner)), in registerMatchers() 99 hasRHS(unless(ConsideredOwner))) in registerMatchers() 107 varDecl(hasInitializer(unless(ConsideredOwner)), IsOwnerType) in registerMatchers() 118 allOf(unless(ConsideredOwner), unless(parenListExpr())))) in registerMatchers() 130 hasLHS(unless(IsOwnerType)), in registerMatchers() 142 unless(IsOwnerType)), in registerMatchers() 152 expr(unless(ConsideredOwner)).bind("expected_owner_argument"), in registerMatchers() 160 parmVarDecl(unless(IsOwnerType)) in registerMatchers() 169 unless(returns(qualType(hasDeclaration(OwnerDecl))))) in registerMatchers() [all …]
|
D | InitVariablesCheck.cpp | 41 varDecl(unless(hasInitializer(anything())), unless(isInstantiated()), in registerMatchers() 42 isLocalVarDecl(), unless(isStaticLocal()), isDefinition(), in registerMatchers() 43 unless(hasParent(cxxCatchStmt())), in registerMatchers() 46 unless(equalsBoundNode(BadDecl))) in registerMatchers()
|
D | ProBoundsArrayToPointerDecayCheck.cpp | 59 unless(hasParent(arraySubscriptExpr())), in registerMatchers() 60 unless(hasParentIgnoringImpCasts(explicitCastExpr())), in registerMatchers() 61 unless(isInsideOfRangeBeginEndStmt()), in registerMatchers() 62 unless(hasSourceExpression(ignoringParens(stringLiteral())))) in registerMatchers()
|
/external/llvm-project/clang/test/Parser/ |
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… 82 …ush(__attribute__((annotate("test"))), apply_to = any(function, variable(unless(is)))) // expected… 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_… 87 …ush(__attribute__((annotate("test"))), apply_to = any(function, variable(unless(42)))) // expecte… [all …]
|
/external/llvm-project/clang/test/Misc/ |
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)…
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | UnhandledSelfAssignmentCheck.cpp | 34 isDefinition(), unless(anyOf(isDeleted(), isImplicit(), isDefaulted()))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(anyOf( in registerMatchers() 54 ofClass(cxxRecordDecl(unless(hasAncestor(classTemplateDecl())))), in registerMatchers() 74 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 98 unless(HasNonTemplateSelfCopy), in registerMatchers() 99 unless(HasTemplateSelfCopy), in registerMatchers()
|
D | ForwardDeclarationNamespaceCheck.cpp | 36 unless(isImplicit()), unless(hasAncestor(cxxRecordDecl())), in registerMatchers() 37 unless(isInstantiated()), unless(IsInSpecialization), in registerMatchers() 38 unless(classTemplateSpecializationDecl())) in registerMatchers()
|
D | SizeofContainerCheck.cpp | 21 expr(unless(isInTemplateInstantiation()), in registerMatchers() 25 unless(matchesName("^::std::(bitset|array)$")), in registerMatchers() 30 unless(hasAncestor(binaryOperator( in registerMatchers()
|
D | SignedCharMisuseCheck.cpp | 55 qualType(isAnyCharacter(), isSignedInteger(), unless(IntTypedef)))); in charCastExpression() 58 isAnyCharacter(), unless(isSignedInteger()), unless(IntTypedef)))); in charCastExpression() 80 qualType(isInteger(), unless(isAnyCharacter()), unless(booleanType())) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | RedundantMemberInitCheck.cpp | 32 cxxRecordDecl(unless(isTriviallyDefaultConstructible())))))) in registerMatchers() 39 unless(isDelegatingConstructor()), in registerMatchers() 40 ofClass(unless( in registerMatchers() 45 unless(forField(hasType(isConstQualified()))), in registerMatchers() 46 unless(forField(hasParent(recordDecl(isUnion()))))) in registerMatchers()
|
D | ImplicitBoolConversionCheck.cpp | 264 expr(anyOf(allOf(isMacroExpansion(), unless(isNULLMacroExpansion())), in registerMatchers() 274 unless(exceptionCases)); in registerMatchers() 288 unless(hasParent( in registerMatchers() 291 unless(exceptionCases), unless(has(boolXor)), in registerMatchers() 295 unless(isInTemplateInstantiation()), in registerMatchers() 296 unless(hasAncestor(functionTemplateDecl()))) in registerMatchers() 319 unless(hasParent( in registerMatchers() 323 unless(hasParent(bitfieldConstruct)), in registerMatchers() 327 unless(isInTemplateInstantiation()), in registerMatchers() 328 unless(hasAncestor(functionTemplateDecl())))), in registerMatchers()
|
D | UseAnyOfAllOfCheck.cpp | 50 returnStmt(hasReturnValue(unless(cxxBoolLiteral(equals(true))))); in registerMatchers() 52 returnStmt(hasReturnValue(unless(cxxBoolLiteral(equals(false))))); in registerMatchers() 58 unless(anyOf(hasDescendant(breakStmt()), in registerMatchers() 68 unless(anyOf(hasDescendant(breakStmt()), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/ |
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() 59 allOf(unless(isExpansionInFileMatching( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
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()
|
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
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()
|
D | UnconventionalAssignOperatorCheck.cpp | 22 pointee(unless(isConstQualified()), in registerMatchers() 29 cxxMethodDecl(unless(anyOf(isDeleted(), isPrivate(), isImplicit())), in registerMatchers() 37 cxxMethodDecl(IsAssign, unless(HasGoodReturnType)).bind("ReturnType"), in registerMatchers() 41 anyOf(lValueReferenceType(pointee(unless(isConstQualified()))), in registerMatchers() 54 const auto IsBadReturnStatement = returnStmt(unless(has(ignoringParenImpCasts( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
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()
|
/external/llvm-project/clang/lib/Analysis/ |
D | ExprMutationAnalyzer.cpp | 109 referenceType(pointee(unless(isConstQualified())))); in __anon6bbd7cfa0402() 114 pointerType(pointee(unless(isConstQualified())))); in __anon6bbd7cfa0502() 119 hasMethod(cxxConstructorDecl(isMoveConstructor(), unless(isDeleted()))), in __anon6bbd7cfa0602() 120 hasMethod(cxxMethodDecl(isMoveAssignmentOperator(), unless(isDeleted()))), in __anon6bbd7cfa0602() 121 unless(anyOf(hasMethod(cxxConstructorDecl(isCopyConstructor(), in __anon6bbd7cfa0602() 122 unless(isDeleted()))), in __anon6bbd7cfa0602() 124 unless(isDeleted())))))); in __anon6bbd7cfa0602() 211 hasAncestor(typeLoc(unless( in isUnevaluated() 216 unaryExprOrTypeTraitExpr(unless(sizeOfExpr( in isUnevaluated() 222 unless(isPotentiallyEvaluated())), in isUnevaluated() [all …]
|
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
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()
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
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()
|
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() 111 unless(hasParent(functionTemplateDecl())))), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
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()
|
D | MutatingCopyCheck.cpp | 29 allOf(unless(hasDescendant(expr(unless(MemberExprOrSourceObject)))), in registerMatchers() 43 unless(hasDescendant(expr(unless(MemberExprOrSelf)))), MemberExprOrSelf); in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | UnnecessaryValueParamCheck.cpp | 37 unless(hasAncestor(callExpr()))), in isReferencedOutsideOfCallExpr() 48 unless(hasAncestor(stmt(anyOf(forStmt(), cxxForRangeStmt(), in hasLoopStmtAncestor() 80 unless(anyOf(hasCanonicalType(referenceType()), in registerMatchers() 87 functionDecl(hasBody(stmt()), isDefinition(), unless(isImplicit()), in registerMatchers() 88 unless(cxxMethodDecl(anyOf(isOverride(), isFinal()))), in registerMatchers() 90 unless(isInstantiated()), decl().bind("functionDecl"))), in registerMatchers()
|