Home
last modified time | relevance | path

Searched refs:ASTCtx (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
DMPIFunctionClassifier.cpp21 void MPIFunctionClassifier::identifierInit(ASTContext &ASTCtx) { in identifierInit() argument
23 initPointToPointIdentifiers(ASTCtx); in identifierInit()
24 initCollectiveIdentifiers(ASTCtx); in identifierInit()
25 initAdditionalIdentifiers(ASTCtx); in identifierInit()
28 void MPIFunctionClassifier::initPointToPointIdentifiers(ASTContext &ASTCtx) { in initPointToPointIdentifiers() argument
30 IdentInfo_MPI_Send = &ASTCtx.Idents.get("MPI_Send"); in initPointToPointIdentifiers()
35 IdentInfo_MPI_Isend = &ASTCtx.Idents.get("MPI_Isend"); in initPointToPointIdentifiers()
41 IdentInfo_MPI_Ssend = &ASTCtx.Idents.get("MPI_Ssend"); in initPointToPointIdentifiers()
46 IdentInfo_MPI_Issend = &ASTCtx.Idents.get("MPI_Issend"); in initPointToPointIdentifiers()
52 IdentInfo_MPI_Bsend = &ASTCtx.Idents.get("MPI_Bsend"); in initPointToPointIdentifiers()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
DMPIFunctionClassifier.cpp22 void MPIFunctionClassifier::identifierInit(ASTContext &ASTCtx) { in identifierInit() argument
24 initPointToPointIdentifiers(ASTCtx); in identifierInit()
25 initCollectiveIdentifiers(ASTCtx); in identifierInit()
26 initAdditionalIdentifiers(ASTCtx); in identifierInit()
29 void MPIFunctionClassifier::initPointToPointIdentifiers(ASTContext &ASTCtx) { in initPointToPointIdentifiers() argument
31 IdentInfo_MPI_Send = &ASTCtx.Idents.get("MPI_Send"); in initPointToPointIdentifiers()
36 IdentInfo_MPI_Isend = &ASTCtx.Idents.get("MPI_Isend"); in initPointToPointIdentifiers()
42 IdentInfo_MPI_Ssend = &ASTCtx.Idents.get("MPI_Ssend"); in initPointToPointIdentifiers()
47 IdentInfo_MPI_Issend = &ASTCtx.Idents.get("MPI_Issend"); in initPointToPointIdentifiers()
53 IdentInfo_MPI_Bsend = &ASTCtx.Idents.get("MPI_Bsend"); in initPointToPointIdentifiers()
[all …]
DMPIFunctionClassifier.h26 MPIFunctionClassifier(ASTContext &ASTCtx) { identifierInit(ASTCtx); } in MPIFunctionClassifier() argument
52 void identifierInit(ASTContext &ASTCtx);
53 void initPointToPointIdentifiers(ASTContext &ASTCtx);
54 void initCollectiveIdentifiers(ASTContext &ASTCtx);
55 void initAdditionalIdentifiers(ASTContext &ASTCtx);
/external/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/
DMPIFunctionClassifier.h25 MPIFunctionClassifier(ASTContext &ASTCtx) { identifierInit(ASTCtx); } in MPIFunctionClassifier() argument
51 void identifierInit(ASTContext &ASTCtx);
52 void initPointToPointIdentifiers(ASTContext &ASTCtx);
53 void initCollectiveIdentifiers(ASTContext &ASTCtx);
54 void initAdditionalIdentifiers(ASTContext &ASTCtx);
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DStaticAssertCheck.cpp75 const ASTContext *ASTCtx = Result.Context; in check() local
76 const LangOptions &Opts = ASTCtx->getLangOpts(); in check()
77 const SourceManager &SM = ASTCtx->getSourceManager(); in check()
95 !Condition->isEvaluatable(*ASTCtx)) in check()
117 (LastParenLoc = getLastParenLoc(ASTCtx, AssertLoc)).isValid()) { in check()
138 SourceLocation StaticAssertCheck::getLastParenLoc(const ASTContext *ASTCtx, in getLastParenLoc() argument
140 const LangOptions &Opts = ASTCtx->getLangOpts(); in getLastParenLoc()
141 const SourceManager &SM = ASTCtx->getSourceManager(); in getLastParenLoc()
DStaticAssertCheck.h35 SourceLocation getLastParenLoc(const ASTContext *ASTCtx,
/external/llvm-project/clang-tools-extra/clangd/unittests/
DExpectedTypeTest.cpp44 ASTCtx(), CodeCompletionResult(D, CCP_Declaration)); in fromCompletionResult()
68 auto Type = OpaqueType::fromType(ASTCtx(), typeOf(Name)); in buildEquivClasses()
74 ASTContext &ASTCtx() { return AST->getASTContext(); } in ASTCtx() function in clang::clangd::__anon7498c3880111::ExpectedTypeConversionTest
143 OpaqueType IntTy = *OpaqueType::fromType(ASTCtx(), typeOf("int_")); in TEST_F()
146 OpaqueType IntPtrTy = *OpaqueType::fromType(ASTCtx(), typeOf("int_ptr")); in TEST_F()
165 auto IntPtrTy = *OpaqueType::fromType(ASTCtx(), typeOf("int_ptr_")); in TEST_F()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DAnalysisManager.cpp16 AnalysisManager::AnalysisManager(ASTContext &ASTCtx, Preprocessor &PP, in AnalysisManager() argument
24 ASTCtx, Options.UnoptimizedCFG, in AnalysisManager()
41 Ctx(ASTCtx), PP(PP), LangOpts(ASTCtx.getLangOpts()), in AnalysisManager()
DLoopUnrolling.cpp190 ASTContext &ASTCtx = in isPossiblyEscaped() local
195 *S, ASTCtx); in isPossiblyEscaped()
209 bool shouldCompletelyUnroll(const Stmt *LoopStmt, ASTContext &ASTCtx, in shouldCompletelyUnroll() argument
217 auto Matches = match(forLoopMatcher(), *LoopStmt, ASTCtx); in shouldCompletelyUnroll()
261 ProgramStateRef updateLoopStack(const Stmt *LoopStmt, ASTContext &ASTCtx, in updateLoopStack() argument
280 if (!shouldCompletelyUnroll(LoopStmt, ASTCtx, Pred, maxStep)) { in updateLoopStack()
DLoopWidening.cpp57 ASTContext &ASTCtx = LCtx->getAnalysisDeclContext()->getASTContext(); in getWidenedLoopState() local
73 *LCtx->getDecl()->getBody(), ASTCtx); in getWidenedLoopState()
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp204 ASTCtx = &Ctx; in initialize()
211 const ASTContext &ASTCtx, in shouldCollectSymbol() argument
260 assert(ASTCtx && PP.get() && "ASTContext and Preprocessor must be set."); in handleDeclOccurrence()
305 auto &SM = ASTCtx->getSourceManager(); in handleDeclOccurrence()
321 ASTCtx->getLangOpts()); in handleDeclOccurrence()
324 !shouldCollectSymbol(*ND, *ASTCtx, Opts, IsMainFileOnly)) in handleDeclOccurrence()
426 ASTCtx->getLangOpts()); in handleMacroOccurrence()
571 const auto &SM = ASTCtx->getSourceManager(); in finish()
593 auto Range = getTokenRange(LocAndRole.Loc, SM, ASTCtx->getLangOpts()); in finish()
618 syntax::tokenize(FileID, SM, ASTCtx->getLangOpts()); in finish()
[all …]
DSymbolCollector.h95 static bool shouldCollectSymbol(const NamedDecl &ND, const ASTContext &ASTCtx,
154 ASTContext *ASTCtx; variable
/external/llvm-project/clang/include/clang/AST/
DParentMapContext.h68 ASTContext &ASTCtx;
79 TraversalKindScope(ASTContext &ASTCtx, llvm::Optional<TraversalKind> ScopeTK) in TraversalKindScope() argument
80 : Ctx(ASTCtx.getParentMapContext()) { in TraversalKindScope()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
DUncountedLocalVarsChecker.cpp35 auto &ASTCtx = Var->getASTContext(); in isDeclaredInForOrIf() local
36 auto parent = ASTCtx.getParents(*Var); in isDeclaredInForOrIf()
40 DynTypedNodeList grandParent = ASTCtx.getParents(*DS); in isDeclaredInForOrIf()
/external/llvm-project/clang-tools-extra/clangd/refactor/
DRename.cpp221 auto &ASTCtx = RenameDecl.getASTContext(); in renameable() local
222 bool MainFileIsHeader = isHeaderFile(MainFilePath, ASTCtx.getLangOpts()); in renameable()
224 isInsideMainFile(RenameDecl.getBeginLoc(), ASTCtx.getSourceManager()); in renameable()
398 auto &ASTCtx = RenameDecl.getASTContext(); in checkName() local
400 if (isKeyword(NewName, ASTCtx.getLangOpts())) in checkName()
406 if (auto *Conflict = lookupSiblingWithName(ASTCtx, RenameDecl, NewName)) in checkName()
409 Conflict->getLocation().printToString(ASTCtx.getSourceManager())}; in checkName()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DLoopUnrolling.h39 ProgramStateRef updateLoopStack(const Stmt *LoopStmt, ASTContext &ASTCtx,
/external/llvm-project/clang/lib/AST/
DParentMapContext.cpp22 ParentMapContext::ParentMapContext(ASTContext &Ctx) : ASTCtx(Ctx) {} in ParentMapContext()
332 Parents = std::make_unique<ParentMap>(ASTCtx); in getParents()
DOpenMPClause.cpp2125 void OMPTraitInfo::getAsVariantMatchInfo(ASTContext &ASTCtx, in getAsVariantMatchInfo() argument
2140 Selector.ScoreOrCondition->getIntegerConstantExpr(ASTCtx)) in getAsVariantMatchInfo()
2153 if ((Score = Selector.ScoreOrCondition->getIntegerConstantExpr(ASTCtx))) in getAsVariantMatchInfo()
2303 ASTContext &ASTCtx, std::function<void(StringRef)> &&DiagUnknownTrait, in TargetOMPContext() argument
2305 : OMPContext(ASTCtx.getLangOpts().OpenMPIsDevice, in TargetOMPContext()
2306 ASTCtx.getTargetInfo().getTriple()), in TargetOMPContext()
2308 return ASTCtx.getTargetInfo().isValidFeatureName(FeatureName); in TargetOMPContext()
2311 ASTCtx.getFunctionFeatureMap(FeatureMap, CurrentFunctionDecl);
/external/llvm-project/clang-tools-extra/clangd/
DCodeComplete.h318 bool isIndexedForCodeCompletion(const NamedDecl &ND, ASTContext &ASTCtx);
DCodeComplete.cpp266 CodeCompletionBuilder(ASTContext *ASTCtx, const CompletionCandidate &C, in CodeCompletionBuilder()
274 : ASTCtx(ASTCtx), ExtractDocumentation(Opts.IncludeComments), in CodeCompletionBuilder()
279 assert(ASTCtx); in CodeCompletionBuilder()
299 FixIt, ASTCtx->getSourceManager(), ASTCtx->getLangOpts())); in CodeCompletionBuilder()
400 SetDoc(getDocComment(*ASTCtx, *C.SemaResult, in add()
506 ASTContext *ASTCtx; member
1847 bool isIndexedForCodeCompletion(const NamedDecl &ND, ASTContext &ASTCtx) { in isIndexedForCodeCompletion() argument
DAST.cpp416 llvm::Optional<QualType> getDeducedType(ASTContext &ASTCtx, in getDeducedType() argument
421 V.TraverseAST(ASTCtx); in getDeducedType()
DHover.cpp554 HoverInfo getHoverContents(QualType T, ASTContext &ASTCtx, in getHoverContents() argument
559 HI.Name = printName(ASTCtx, *D); in getHoverContents()
563 HI.Documentation = getDeclComment(ASTCtx, *CommentD); in getHoverContents()
567 auto Policy = printingPolicyForDecls(ASTCtx.getPrintingPolicy()); in getHoverContents()
/external/llvm-project/clang/lib/AST/Interp/
DProgram.cpp123 auto &ASTCtx = Ctx.getASTContext(); in getOrCreateDummy() local
127 QualType Ty = ASTCtx.getIncompleteArrayType(ElemTy, ArrayType::Normal, 0); in getOrCreateDummy()
/external/llvm-project/clang/lib/Analysis/
DAnalysisDeclContext.cpp69 ASTContext &ASTCtx, bool useUnoptimizedCFG, bool addImplicitDtors, in AnalysisDeclContextManager() argument
75 : Injector(injector), FunctionBodyFarm(ASTCtx, injector), in AnalysisDeclContextManager()
/external/llvm-project/clang/include/clang/Analysis/
DAnalysisDeclContext.h441 ASTContext &ASTCtx, bool useUnoptimizedCFG = false,

12