| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | AvoidNonConstGlobalVariablesCheck.cpp | 26 hasGlobalStorage(), in registerMatchers() 33 varDecl(hasGlobalStorage(), hasType(referenceType()), in registerMatchers() 37 varDecl(hasGlobalStorage(), in registerMatchers()
|
| H A D | InterfacesGlobalInitCheck.cpp | 21 varDecl(hasGlobalStorage(), 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() 74 Finder->addMatcher(varDecl(hasGlobalStorage(), hasType(isConstQualified()), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | DynamicStaticInitializersCheck.cpp | 49 varDecl(hasGlobalStorage(), unless(hasConstantDeclaration())).bind("var"), in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | NonnullGlobalConstantsChecker.cpp | 102 if (!Decl->hasGlobalStorage()) in isGlobalConstString()
|
| H A D | DeadStoresChecker.cpp | 427 if (VD->hasGlobalStorage() && in observeStmt()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | GlobalDecl.h | 117 cast<VarDecl>(getDecl())->hasGlobalStorage() && in getDynamicInitKind()
|
| H A D | Decl.h | 1141 bool hasGlobalStorage() const { return !hasLocalStorage(); } in hasGlobalStorage() function
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/ |
| H A D | Transfer.cpp | 133 if (D.hasGlobalStorage()) in VisitDeclStmt() 344 if (D->hasGlobalStorage()) { in VisitMemberExpr()
|
| H A D | DataflowEnvironment.cpp | 113 if (!D.hasGlobalStorage() || in initGlobalVar()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCUDA.cpp | 579 assert(!VD->isInvalidDecl() && VD->hasGlobalStorage()); in HasAllowedCUDADeviceStaticInitializer() 612 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage() || in checkAllowedCUDAInitializer()
|
| H A D | SemaStmt.cpp | 1169 if (VD->hasGlobalStorage() && VarType.isConstQualified() && in ShouldDiagnoseSwitchCaseNotInEnum() 1921 if (VD->getType().isVolatileQualified() || VD->hasGlobalStorage()) in CheckForLoopConditionalStatement()
|
| H A D | SemaDecl.cpp | 6806 Var->hasGlobalStorage()) in deduceOpenCLAddressSpace() 7204 if (NewVD->hasGlobalStorage() && !NewVD->isStaticLocal()) { in diagnoseOpenCLTypes() 7646 if (!NewVD->hasGlobalStorage()) in ActOnVariableDeclarator() 8011 if (D->hasGlobalStorage()) in getShadowedDeclaration() 8479 (T->isVariableArrayType() && NewVD->hasGlobalStorage())) { in CheckVariableDeclarationType() 13663 bool GlobalStorage = var->hasGlobalStorage(); in CheckCompleteVariableDeclaration() 13858 if (VD->hasGlobalStorage() && VD->isThisDeclarationADefinition() && in FinalizeDeclaration()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | SValExplainer.h | 198 else if (VD->hasGlobalStorage()) in VisitNonParamVarRegion()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopUnrolling.cpp | 199 if (VD->hasGlobalStorage()) in isPossiblyEscaped()
|
| H A D | RegionStore.cpp | 1744 (!B.isMainAnalysis() || !VD->hasGlobalStorage())) in getConstantValFromConstArrayInitializer() 1985 (B.isMainAnalysis() && VD->hasGlobalStorage())) in getBindingForField()
|
| H A D | MemRegion.cpp | 979 if (D->hasGlobalStorage() && !D->isStaticLocal()) { in getVarRegion()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | LiveVariables.cpp | 137 return D->hasGlobalStorage(); in isAlwaysAlive()
|
| H A D | UninitializedValues.cpp | 45 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() && in isTrackedVar()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Registry.cpp | 315 REGISTER_MATCHER(hasGlobalStorage); in RegistryMaps()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGDeclCXX.cpp | 31 (D.hasGlobalStorage() || in EmitDeclInit()
|
| H A D | CGDecl.cpp | 1144 if (D.hasGlobalStorage()) in createUnnamedGlobalFrom() 2650 if (!VD->hasGlobalStorage()) in EmitOMPAllocateDecl()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/ |
| H A D | ChangeNamespace.cpp | 505 hasGlobalStorage(), hasParent(namespaceDecl()), in registerMatchers()
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 4326 AST_MATCHER(VarDecl, hasGlobalStorage) { in AST_MATCHER() argument 4327 return Node.hasGlobalStorage(); in AST_MATCHER()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Decl.cpp | 2526 if (hasGlobalStorage() && !getASTContext().getLangOpts().CPlusPlus) in hasConstantInitialization() 2712 return hasGlobalStorage() && (hasAttr<NoDestroyAttr>() || in isNoDestroy()
|