Home
last modified time | relevance | path

Searched refs:unless (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DStringviewNullptrCheck.cpp117 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 DUnhandledSelfAssignmentCheck.cpp34 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 DForwardDeclarationNamespaceCheck.cpp36 unless(isImplicit()), unless(hasAncestor(cxxRecordDecl())), in registerMatchers()
37 unless(isInstantiated()), unless(IsInSpecialization), in registerMatchers()
38 unless(classTemplateSpecializationDecl())) in registerMatchers()
H A DSizeofContainerCheck.cpp21 expr(unless(isInTemplateInstantiation()), in registerMatchers()
25 unless(matchesName("^::std::(bitset|array)$")), in registerMatchers()
30 unless(hasAncestor(binaryOperator( in registerMatchers()
H A DSignedCharMisuseCheck.cpp49 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 Dpragma-attribute-strict-subjects.c20 …__((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 DOwningMemoryCheck.cpp64 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 DProBoundsArrayToPointerDecayCheck.cpp60 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 DInitVariablesCheck.cpp42 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 DDontModifyStdNamespaceCheck.cpp47 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 DStaticObjectExceptionCheck.cpp28 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 DMutatingCopyCheck.cpp29 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 Dpragma-attribute.cpp12 #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 Dpragma-attribute-strict-subjects.c18 …__((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 DRedundantMemberInitCheck.cpp31 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 DImplicitBoolConversionCheck.cpp264 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 DPreferIsaOrDynCastInConditionalsCheck.cpp29 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 DUseAutoCheck.cpp205 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 DExprMutationAnalyzer.cpp110 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 DNonPrivateMemberVariablesInClassesCheck.cpp26 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 DUnconventionalAssignOperatorCheck.cpp23 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 DGlobalVariableDeclarationCheck.cpp70 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 DFindAllSymbols.cpp126 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 DDurationDivisionCheck.cpp31 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 DUpgradeDurationConversionsCheck.cpp40 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()

12345678910>>...22