Home
last modified time | relevance | path

Searched refs:hasGlobalStorage (Results 1 – 25 of 41) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DAvoidNonConstGlobalVariablesCheck.cpp26 hasGlobalStorage(), in registerMatchers()
33 varDecl(hasGlobalStorage(), hasType(referenceType()), in registerMatchers()
37 varDecl(hasGlobalStorage(), in registerMatchers()
H A DInterfacesGlobalInitCheck.cpp21 varDecl(hasGlobalStorage(), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DGlobalVariableDeclarationCheck.cpp70 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 DDynamicStaticInitializersCheck.cpp49 varDecl(hasGlobalStorage(), unless(hasConstantDeclaration())).bind("var"), in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DNonnullGlobalConstantsChecker.cpp102 if (!Decl->hasGlobalStorage()) in isGlobalConstString()
H A DDeadStoresChecker.cpp427 if (VD->hasGlobalStorage() && in observeStmt()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DGlobalDecl.h117 cast<VarDecl>(getDecl())->hasGlobalStorage() && in getDynamicInitKind()
H A DDecl.h1141 bool hasGlobalStorage() const { return !hasLocalStorage(); } in hasGlobalStorage() function
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp133 if (D.hasGlobalStorage()) in VisitDeclStmt()
344 if (D->hasGlobalStorage()) { in VisitMemberExpr()
H A DDataflowEnvironment.cpp113 if (!D.hasGlobalStorage() || in initGlobalVar()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCUDA.cpp579 assert(!VD->isInvalidDecl() && VD->hasGlobalStorage()); in HasAllowedCUDADeviceStaticInitializer()
612 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage() || in checkAllowedCUDAInitializer()
H A DSemaStmt.cpp1169 if (VD->hasGlobalStorage() && VarType.isConstQualified() && in ShouldDiagnoseSwitchCaseNotInEnum()
1921 if (VD->getType().isVolatileQualified() || VD->hasGlobalStorage()) in CheckForLoopConditionalStatement()
H A DSemaDecl.cpp6806 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 DSValExplainer.h198 else if (VD->hasGlobalStorage()) in VisitNonParamVarRegion()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp199 if (VD->hasGlobalStorage()) in isPossiblyEscaped()
H A DRegionStore.cpp1744 (!B.isMainAnalysis() || !VD->hasGlobalStorage())) in getConstantValFromConstArrayInitializer()
1985 (B.isMainAnalysis() && VD->hasGlobalStorage())) in getBindingForField()
H A DMemRegion.cpp979 if (D->hasGlobalStorage() && !D->isStaticLocal()) { in getVarRegion()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DLiveVariables.cpp137 return D->hasGlobalStorage(); in isAlwaysAlive()
H A DUninitializedValues.cpp45 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() && in isTrackedVar()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp315 REGISTER_MATCHER(hasGlobalStorage); in RegistryMaps()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDeclCXX.cpp31 (D.hasGlobalStorage() || in EmitDeclInit()
H A DCGDecl.cpp1144 if (D.hasGlobalStorage()) in createUnnamedGlobalFrom()
2650 if (!VD->hasGlobalStorage()) in EmitOMPAllocateDecl()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp505 hasGlobalStorage(), hasParent(namespaceDecl()), in registerMatchers()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4326 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 DDecl.cpp2526 if (hasGlobalStorage() && !getASTContext().getLangOpts().CPlusPlus) in hasConstantInitialization()
2712 return hasGlobalStorage() && (hasAttr<NoDestroyAttr>() || in isNoDestroy()

12