| /llvm-project-15.0.7/clang/lib/ExtractAPI/ |
| H A D | ExtractAPIConsumer.cpp | 179 auto &SM = CI.getSourceManager(); in isLocationInKnownFile() 266 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitVarDecl() 271 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl() 327 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitFunctionDecl() 368 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitEnumDecl() 409 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitRecordDecl() 443 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitObjCInterfaceDecl() 490 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitObjCProtocolDecl() 525 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitTypedefNameDecl() 551 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitObjCCategoryDecl() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | IncludeCleanerTests.cpp | 256 if (AST.getSourceManager().getBufferName(Loc).endswith( in TEST() 259 TU.HeaderCode, AST.getSourceManager().getFileOffset(Loc))); in TEST() 416 auto &SM = AST.getSourceManager(); in TEST() 472 AST.getCanonicalIncludes(), AST.getSourceManager()); in TEST() 474 auto &SM = AST.getSourceManager(); in TEST() 506 AST.getCanonicalIncludes(), AST.getSourceManager()); in TEST() 508 auto &SM = AST.getSourceManager(); in TEST() 538 AST.getCanonicalIncludes(), AST.getSourceManager()); in TEST() 543 ReferencedFiles.User.contains(AST.getSourceManager().getMainFileID())); in TEST() 576 AST.getCanonicalIncludes(), AST.getSourceManager()); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | SourceCodeTest.cpp | 70 arg, Context->getSourceManager(), Context->getLangOpts()); 71 unsigned Begin = Context->getSourceManager().getFileOffset(Range.getBegin()); 72 unsigned End = Context->getSourceManager().getFileOffset(Range.getEnd()); 525 EXPECT_THAT_ERROR(validateEditRange(Range, Context->getSourceManager()), in TEST() 540 Context->getSourceManager().getSpellingLoc(Expr->getBeginLoc()); in TEST() 573 validateEditRange(InvertedRange, Context->getSourceManager()), in TEST() 588 EXPECT_THAT_ERROR(validateEditRange(Range, Context->getSourceManager()), in TEST() 603 EXPECT_THAT_ERROR(validateEditRange(Range, Context->getSourceManager()), in TEST() 619 EXPECT_THAT_ERROR(validateEditRange(Range, Context->getSourceManager()), in TEST() 665 unsigned Begin = Context->getSourceManager().getFileOffset( in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/ |
| H A D | IncludeFixer.cpp | 111 Compiler.getSourceManager(), in runInvocation() 166 FileID FID = CI->getSourceManager().getFileID(Loc); in MaybeDiagnoseMissingCompleteType() 167 StringRef Code = CI->getSourceManager().getBufferData(FID); in MaybeDiagnoseMissingCompleteType() 169 CI->getSourceManager().getLocForStartOfFile(FID); in MaybeDiagnoseMissingCompleteType() 172 getIncludeFixerContext(CI->getSourceManager(), in MaybeDiagnoseMissingCompleteType() 211 if (!CI->getSourceManager().isWrittenInMainFile(Typo.getLoc())) in CorrectTypo() 257 const auto &SM = CI->getSourceManager(); in CorrectTypo() 362 LLVM_DEBUG(CI->getSourceManager() in query() 365 .print(llvm::dbgs(), CI->getSourceManager())); in query() 368 CI->getSourceManager().getLocForStartOfFile( in query() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | FixItHintUtils.cpp | 22 AmpLocation, Context.getSourceManager(), Context.getLangOpts()); in changeVarDeclToReference() 25 Context.getSourceManager(), in changeVarDeclToReference() 51 T = lexer::getPreviousToken(Start, Context.getSourceManager(), in skipLParensBackwards() 57 Start = lexer::findPreviousTokenStart(Start, Context.getSourceManager(), in skipLParensBackwards() 136 Var.getLocation(), Context.getSourceManager(), Context.getLangOpts(), in changePointer() 157 Var.getLocation(), Context.getSourceManager(), Context.getLangOpts(), in changePointer() 174 Var.getLocation(), Context.getSourceManager(), Context.getLangOpts(), in changeReferencee()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFinder.cpp | 39 : RecursiveSymbolVisitor(Context.getSourceManager(), in NamedDeclOccurrenceFindingVisitor() 65 (Context.getSourceManager().isBeforeInTranslationUnit(Start, in isPointWithin() 67 Context.getSourceManager().isBeforeInTranslationUnit(Point, End)); in isPointWithin() 79 const SourceManager &SM = Context.getSourceManager(); in getNamedDeclAt()
|
| H A D | USRLocFinder.cpp | 61 : RecursiveSymbolVisitor(Context.getSourceManager(), in USRLocFindingASTVisitor() 72 const SourceManager &SM = Context.getSourceManager(); in visitSymbolOccurrence() 91 BeginLoc, 0, Context.getSourceManager(), Context.getLangOpts()); in checkAndAddLocation() 94 Context.getSourceManager(), Context.getLangOpts()); in checkAndAddLocation() 202 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitNamedDecl() 329 IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitDeclRefExpr() 408 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitTypeLoc() 443 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitTypeLoc() 534 TranslationUnitDecl->getASTContext().getSourceManager(); in createRenameAtomicChanges()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ParsedAST.h | 73 SourceManager &getSourceManager() { in getSourceManager() function 74 return getASTContext().getSourceManager(); in getSourceManager() 76 const SourceManager &getSourceManager() const { in getSourceManager() function 77 return getASTContext().getSourceManager(); in getSourceManager()
|
| H A D | ParsedAST.cpp | 77 auto &SM = D->getASTContext().getSourceManager(); in HandleTopLevelDecl() 130 std::move(Includes), ExistingCallbacks, Clang.getSourceManager(), PP, in attach() 454 const SourceManager &SM = Clang->getSourceManager(); in build() 486 Check->registerPPCallbacks(Clang->getSourceManager(), PP, PP); in build() 530 isInsideMainFile(Info.getLocation(), Info.getSourceManager()); in build() 593 std::make_unique<CollectMainFileMacros>(Clang->getSourceManager(), in build() 601 collectPragmaMarksCallback(Clang->getSourceManager(), Marks)); in build() 738 Total += AST.getSourceManager().getContentCacheSize(); in getUsedBytes() 739 Total += AST.getSourceManager().getDataStructureSizes(); in getUsedBytes() 740 Total += AST.getSourceManager().getMemoryBufferSizes().malloc_bytes; in getUsedBytes()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckSecuritySyntaxOnly.cpp | 337 PathDiagnosticLocation::createBegin(FS, BR.getSourceManager(), AC); in checkLoopConditionForFloat() 377 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bcmp() 419 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bcopy() 460 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bzero() 498 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_gets() 538 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_getpw() 579 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mktemp() 651 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mkstemp() 698 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_strcpy() 726 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_strcat() [all …]
|
| H A D | IdenticalExprChecker.cpp | 70 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in reportIdenticalExpr() 119 PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC); in VisitIfStmt() 142 PathDiagnosticLocation ELoc(Cond2, BR.getSourceManager(), AC); in VisitIfStmt() 172 PathDiagnosticLocation::createBegin(I, BR.getSourceManager(), AC); in VisitIfStmt() 255 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in checkComparisonOp() 280 C, BR.getSourceManager()); in VisitConditionalOperator()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | SwapIfBranches.cpp | 66 auto &SrcMgr = Inputs.AST->getSourceManager(); in apply() 81 if (auto Err = Result.add(tooling::Replacement(Ctx.getSourceManager(), in apply() 85 if (auto Err = Result.add(tooling::Replacement(Ctx.getSourceManager(), in apply()
|
| H A D | DefineInline.cpp | 57 const SourceManager &SM = FD->getASTContext().getSourceManager(); in getSemicolonForDecl() 146 const SourceManager &SM = FD->getASTContext().getSourceManager(); in qualifyAllDecls() 264 const SourceManager &SM = Dest->getASTContext().getSourceManager(); in renameParameters() 361 const SourceManager &SM = FD->getASTContext().getSourceManager(); in addInlineIfInHeader() 432 Sel.AST->getSourceManager())) in prepare() 440 const auto &SM = AST.getSourceManager(); in apply()
|
| H A D | RemoveUsingNamespace.cpp | 74 auto &SM = Ctx.getSourceManager(); in removeUsingDirective() 131 auto &SM = Ctx.getSourceManager(); in apply() 198 if (auto Err = R.add(tooling::Replacement(Ctx.getSourceManager(), Loc, in apply()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | AnalysisManager.h | 86 SourceManager &getSourceManager() override { in getSourceManager() function 87 return getASTContext().getSourceManager(); in getSourceManager() 151 const SourceManager &SM = getASTContext().getSourceManager(); in isInCodeFile()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | PreprocessorLexer.cpp | 27 InitialNumSLocEntries = pp->getSourceManager().local_sloc_entry_size(); in PreprocessorLexer() 52 return PP->getSourceManager().getFileEntryRefForID(getFileID()); in getFileEntry()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | PragmaCommentHandler.cpp | 24 PP.getSourceManager(), PP.getLangOpts()); in HandleComment() 30 PP.getSourceManager().getFilename(Range.getBegin()), in HandleComment()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DataCollection.cpp | 20 MacroStack << Lexer::getImmediateMacroName(Loc, Context.getSourceManager(), in printMacroName() 36 SourceManager &SM = Context.getSourceManager(); in getMacroStack()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | SymbolCollector.cpp | 53 const auto &SM = ND.getASTContext().getSourceManager(); in isPrivateProtoDecl() 121 const auto &SM = ND.getASTContext().getSourceManager(); in isPreferredDeclaration() 186 const auto &SM = AST.getSourceManager(); in isSpelled() 440 const auto &SM = ASTCtx->getSourceManager(); in getTokenLocation() 460 this->PP, ASTCtx->getSourceManager(), Opts); in initialize() 574 auto &SM = ASTCtx->getSourceManager(); in handleDeclOccurrence() 645 const auto &SM = PP->getSourceManager(); in handleMacros() 696 const auto &SM = PP->getSourceManager(); in handleMacroOccurrence() 876 auto &SM = Ctx.getSourceManager(); in addDeclaration() 949 const auto &SM = ND.getASTContext().getSourceManager(); in addDefinition() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-doc/ |
| H A D | Mapper.cpp | 26 if (D->getASTContext().getSourceManager().isInSystemHeader(D->getLocation())) in mapDecl() 87 return Context.getSourceManager().getPresumedLoc(D->getBeginLoc()).getLine(); in getLine() 94 llvm::SmallString<128> File(Context.getSourceManager() in getFile()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | FrontendAction.cpp | 245 auto &SourceMgr = CI.getSourceManager(); in ReadOriginalFileName() 289 CI.getSourceManager().AddLineNote( in ReadOriginalFileName() 440 auto &SrcMgr = CI.getSourceManager(); in loadModuleMapForModuleBuild() 534 SourceManager &SourceMgr = CI.getSourceManager(); in prepareToBuildModule() 625 CI.getSourceManager().initializeForReplay(AST->getSourceManager()); in BeginSourceFile() 655 auto &OldSM = AST->getSourceManager(); in BeginSourceFile() 692 CI.setSourceManager(&AST->getSourceManager()); in BeginSourceFile() 727 CI.getSourceManager().setFileIsTransient(*FE); in BeginSourceFile() 732 CI.getSourceManager().setAllFilesAreTransient(true); in BeginSourceFile() 888 auto &SourceMgr = CI.getSourceManager(); in BeginSourceFile() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/tool/ |
| H A D | Check.cpp | 214 auto &SM = AST->getSourceManager(); in testLocationFeatures() 221 unsigned Start = AST->getSourceManager().getFileOffset(Tok.location()); in testLocationFeatures() 230 SPAN_ATTACH(Trace, "text", Tok.text(AST->getSourceManager())); in testLocationFeatures() 234 vlog(" {0} {1}", Pos, Tok.text(AST->getSourceManager())); in testLocationFeatures() 244 &AST->getSourceManager().getFileManager().getVirtualFileSystem(); in testLocationFeatures()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXSourceLocation.h | 42 return translateSourceLocation(Context.getSourceManager(), in translateSourceLocation() 60 return translateSourceRange(Context.getSourceManager(), in translateSourceRange()
|
| H A D | CIndexHigh.cpp | 186 SourceManager &SM = Ctx.getSourceManager(); in findFileIdRefVisit() 216 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager(); in findIdRefsInFile() 281 SourceManager &SM = Ctx.getSourceManager(); in findFileMacroRefVisit() 314 SourceManager &SM = Unit->getSourceManager(); in findMacroRefsInFile() 359 SourceManager &SM = Ctx.getSourceManager(); in visit() 386 SourceManager &SM = Unit->getSourceManager(); in findIncludesInFile()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransformActions.cpp | 387 SourceManager &SM = Ctx.getSourceManager(); in canInsert() 400 SourceManager &SM = Ctx.getSourceManager(); in canInsertAfterToken() 422 SourceManager &SM = Ctx.getSourceManager(); in canReplaceText() 443 addInsertion(getLocForEndOfToken(loc, Ctx.getSourceManager(), PP), text); in commitInsertAfterToken() 467 Ctx.getSourceManager(), PP); in commitReplace() 477 Ctx.getSourceManager(), PP), in commitReplace() 483 SourceManager &SM = Ctx.getSourceManager(); in commitReplaceText() 494 SourceManager &SM = Ctx.getSourceManager(); in commitIncreaseIndentation() 507 SourceManager &SM = Ctx.getSourceManager(); in addInsertion() 520 CharRange newRange(range, Ctx.getSourceManager(), PP); in addRemoval()
|