| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
| H A D | MPIFunctionClassifier.cpp | 23 initPointToPointIdentifiers(ASTCtx); in identifierInit() 24 initCollectiveIdentifiers(ASTCtx); in identifierInit() 25 initAdditionalIdentifiers(ASTCtx); in identifierInit() 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() 52 IdentInfo_MPI_Bsend = &ASTCtx.Idents.get("MPI_Bsend"); in initPointToPointIdentifiers() 63 IdentInfo_MPI_Rsend = &ASTCtx.Idents.get("MPI_Rsend"); in initPointToPointIdentifiers() 73 IdentInfo_MPI_Recv = &ASTCtx.Idents.get("MPI_Recv"); in initPointToPointIdentifiers() 78 IdentInfo_MPI_Irecv = &ASTCtx.Idents.get("MPI_Irecv"); in initPointToPointIdentifiers() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | TransferTest.cpp | 55 ASTContext &ASTCtx) { Match(Results, ASTCtx); }, in runDataflow() argument 82 ASTContext &ASTCtx) { in TEST() argument 164 ASTContext &ASTCtx) { in TEST() argument 212 ASTContext &ASTCtx) { in TEST() argument 258 ASTContext &ASTCtx) { in TEST() argument 304 ASTContext &ASTCtx) { in TEST() argument 1187 ASTContext &ASTCtx) { in derivedBaseMemberExpectations() argument 1565 ASTContext &ASTCtx) { in TEST() argument 1606 ASTContext &ASTCtx) { in TEST() argument 1644 ASTContext &ASTCtx) { in TEST() argument [all …]
|
| H A D | TypeErasedDataflowAnalysisTest.cpp | 397 ASTContext &ASTCtx) { Match(Results, ASTCtx); }, in runDataflow() argument 428 ASTContext &ASTCtx) { in TEST_F() argument 552 ASTContext &ASTCtx) { Match(Results, ASTCtx); }, in runDataflow() argument 580 ASTContext &ASTCtx) { in TEST_F() argument 728 ASTContext &ASTCtx) { Match(Results, ASTCtx); }, in runDataflow() argument 815 ASTContext &ASTCtx) { in TEST_F() argument 1017 ASTContext &ASTCtx) { in TEST_F() argument 1051 ASTContext &ASTCtx) { in TEST_F() argument 1094 ASTContext &ASTCtx) { in TEST_F() argument 1130 ASTContext &ASTCtx) { in TEST_F() argument [all …]
|
| H A D | ChromiumCheckModelTest.cpp | 146 ASTContext &ASTCtx) { Match(Results, ASTCtx); }, in runDataflow() argument 157 ASTContext &ASTCtx) { in TEST() argument 161 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST() 190 ASTContext &ASTCtx) { in TEST() argument 194 const ValueDecl *FooDecl = findValueDecl(ASTCtx, "Foo"); in TEST()
|
| H A D | TestingSupport.h | 66 ASTContext &ASTCtx; member 165 VerifyResults({}, AnalysisData.ASTCtx); 193 VerifyResults(Results, AnalysisData.ASTCtx); 221 const ValueDecl *findValueDecl(ASTContext &ASTCtx, llvm::StringRef Name);
|
| H A D | TestingSupport.cpp | 126 const ValueDecl *test::findValueDecl(ASTContext &ASTCtx, llvm::StringRef Name) { in findValueDecl() argument 127 auto TargetNodes = match(valueDecl(hasName(Name)).bind("v"), ASTCtx); in findValueDecl()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | MPIFunctionClassifier.h | 25 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);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | StaticAssertCheck.cpp | 75 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() 137 SourceLocation StaticAssertCheck::getLastParenLoc(const ASTContext *ASTCtx, in getLastParenLoc() argument 139 const LangOptions &Opts = ASTCtx->getLangOpts(); in getLastParenLoc() 140 const SourceManager &SM = ASTCtx->getSourceManager(); in getLastParenLoc()
|
| H A D | StaticAssertCheck.h | 35 SourceLocation getLastParenLoc(const ASTContext *ASTCtx,
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UncheckedOptionalAccessCheck.cpp | 41 analyzeFunction(const FunctionDecl &FuncDecl, ASTContext &ASTCtx) { in analyzeFunction() argument 47 ControlFlowContext::build(&FuncDecl, FuncDecl.getBody(), &ASTCtx); in analyzeFunction() 54 UncheckedOptionalAccessModel Analysis(ASTCtx); in analyzeFunction() 61 [&ASTCtx, &Diagnoser, &Diagnostics]( in analyzeFunction() 65 auto StmtDiagnostics = Diagnoser.diagnose(ASTCtx, Stmt, State.Env); in analyzeFunction()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | AnalysisManager.cpp | 16 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()
|
| H A D | LoopUnrolling.cpp | 228 ASTContext &ASTCtx = in isPossiblyEscaped() local 234 *S, ASTCtx); in isPossiblyEscaped() 248 bool shouldCompletelyUnroll(const Stmt *LoopStmt, ASTContext &ASTCtx, in shouldCompletelyUnroll() argument 256 auto Matches = match(forLoopMatcher(), *LoopStmt, ASTCtx); in shouldCompletelyUnroll() 300 ProgramStateRef updateLoopStack(const Stmt *LoopStmt, ASTContext &ASTCtx, in updateLoopStack() argument 319 if (!shouldCompletelyUnroll(LoopStmt, ASTCtx, Pred, maxStep)) { in updateLoopStack()
|
| H A D | LoopWidening.cpp | 56 ASTContext &ASTCtx = LCtx->getAnalysisDeclContext()->getASTContext(); in getWidenedLoopState() local 72 *LCtx->getDecl()->getBody(), ASTCtx); in getWidenedLoopState()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ParentMapContext.h | 70 ASTContext &ASTCtx; 80 TraversalKindScope(ASTContext &ASTCtx, llvm::Optional<TraversalKind> ScopeTK) in TraversalKindScope() argument 81 : Ctx(ASTCtx.getParentMapContext()) { in TraversalKindScope()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | SymbolCollector.cpp | 440 const auto &SM = ASTCtx->getSourceManager(); in getTokenLocation() 447 auto Range = getTokenRange(TokLoc, SM, ASTCtx->getLangOpts()); in getTokenLocation() 458 ASTCtx = &Ctx; in initialize() 460 this->PP, ASTCtx->getSourceManager(), Opts); in initialize() 467 const ASTContext &ASTCtx, in shouldCollectSymbol() argument 525 assert(ASTCtx && PP && HeaderFileURIs); in handleDeclOccurrence() 574 auto &SM = ASTCtx->getSourceManager(); in handleDeclOccurrence() 586 ASTCtx->getLangOpts()); in handleDeclOccurrence() 589 !shouldCollectSymbol(*ND, *ASTCtx, Opts, IsMainFileOnly)) in handleDeclOccurrence() 711 ASTCtx->getLangOpts()); in handleMacroOccurrence() [all …]
|
| H A D | SymbolCollector.h | 103 static bool shouldCollectSymbol(const NamedDecl &ND, const ASTContext &ASTCtx, 166 ASTContext *ASTCtx; variable
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | UncountedLocalVarsChecker.cpp | 35 auto &ASTCtx = Var->getASTContext(); in isDeclaredInForOrIf() local 36 auto parent = ASTCtx.getParents(*Var); in isDeclaredInForOrIf() 40 DynTypedNodeList grandParent = ASTCtx.getParents(*DS); in isDeclaredInForOrIf()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | LoopUnrolling.h | 37 ProgramStateRef updateLoopStack(const Stmt *LoopStmt, ASTContext &ASTCtx,
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | Rename.cpp | 201 auto &ASTCtx = RenameDecl.getASTContext(); in renameable() local 202 bool MainFileIsHeader = isHeaderFile(MainFilePath, ASTCtx.getLangOpts()); in renameable() 204 isInsideMainFile(RenameDecl.getBeginLoc(), ASTCtx.getSourceManager()); in renameable() 491 auto &ASTCtx = RenameDecl.getASTContext(); in checkName() local 493 if (isKeyword(NewName, ASTCtx.getLangOpts())) in checkName() 501 if (auto *Conflict = lookupSiblingWithName(ASTCtx, RenameDecl, NewName)) in checkName() 504 Conflict->getLocation().printToString(ASTCtx.getSourceManager())}; in checkName()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Hover.cpp | 151 HoverInfo::PrintedType printType(QualType QT, ASTContext &ASTCtx, in printType() argument 174 QualType DesugaredTy = clang::desugarForDiagnostic(ASTCtx, QT, ShouldAKA); in printType() 689 ASTContext &ASTCtx, in getThisExprHoverContents() argument 697 QualType PrettyThisType = ASTCtx.getPointerType( in getThisExprHoverContents() 702 HI.Definition = typeAsDefinition(printType(PrettyThisType, ASTCtx, PP)); in getThisExprHoverContents() 708 ASTContext &ASTCtx, in getDeducedTypeHoverContents() argument 719 HI.Definition = typeAsDefinition(printType(QT, ASTCtx, PP)); in getDeducedTypeHoverContents() 723 HI.Documentation = getDeclComment(ASTCtx, *CommentD); in getDeducedTypeHoverContents()
|
| H A D | CodeComplete.h | 300 bool isIndexedForCodeCompletion(const NamedDecl &ND, ASTContext &ASTCtx);
|
| H A D | CodeComplete.cpp | 289 CodeCompletionBuilder(ASTContext *ASTCtx, const CompletionCandidate &C, in CodeCompletionBuilder() 297 : ASTCtx(ASTCtx), in CodeCompletionBuilder() 303 assert(ASTCtx); in CodeCompletionBuilder() 324 FixIt, ASTCtx->getSourceManager(), ASTCtx->getLangOpts())); in CodeCompletionBuilder() 425 const auto DocComment = getDocComment(*ASTCtx, *C.SemaResult, in add() 569 ASTContext *ASTCtx; member 2090 bool isIndexedForCodeCompletion(const NamedDecl &ND, ASTContext &ASTCtx) { in isIndexedForCodeCompletion() argument
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/ |
| H A D | Transfer.cpp | 515 auto &ASTCtx = F->getASTContext(); in VisitCallExpr() local 518 auto CFCtx = ControlFlowContext::build(F, F->getBody(), &ASTCtx); in VisitCallExpr() 527 auto Analysis = NoopAnalysis(ASTCtx, Options); in VisitCallExpr()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Program.cpp | 138 auto &ASTCtx = Ctx.getASTContext(); in getOrCreateDummy() local 142 QualType Ty = ASTCtx.getIncompleteArrayType(ElemTy, ArrayType::Normal, 0); in getOrCreateDummy()
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/ |
| H A D | UncheckedOptionalAccessModel.cpp | 223 int countOptionalWrappers(const ASTContext &ASTCtx, QualType Type) { in countOptionalWrappers() argument 227 ASTCtx, in countOptionalWrappers() 232 .getDesugaredType(ASTCtx)); in countOptionalWrappers()
|