| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | RefactoringActionRulesTest.cpp | 103 Context.Sources.getLocForStartOfFile(Context.Sources.getMainFileID()) in TEST_F() 166 Context.Sources.getLocForStartOfFile(Context.Sources.getMainFileID()); in TEST_F() 225 Context.Sources.getLocForStartOfFile(Context.Sources.getMainFileID()); in TEST_F()
|
| H A D | SourceCodeTest.cpp | 82 SM.getLocForStartOfFile(SM.getMainFileID()).getLocWithOffset(R.Begin), in AsRange() 83 SM.getLocForStartOfFile(SM.getMainFileID()).getLocWithOffset(R.End))); in AsRange()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | TestingSupport.cpp | 94 SourceManager.getLocForStartOfFile(SourceManager.getMainFileID()) in buildStatementToAnnotationMapping() 117 SourceManager.getLocForStartOfFile(SourceManager.getMainFileID()) in buildStatementToAnnotationMapping()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | HTMLDiagnostics.cpp | 409 R.InsertTextBefore(SMgr.getLocForStartOfFile(*I), os.str()); in GenerateHTML() 557 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), showHelpJavascript()); in FinalizeHTML() 559 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), in FinalizeHTML() 562 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), in FinalizeHTML() 566 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), in FinalizeHTML() 633 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), os.str()); in FinalizeHTML() 682 R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), os.str()); in FinalizeHTML() 1030 Lexer rawLexer(SM.getLocForStartOfFile(LocInfo.first), PP.getLangOpts(), in HandlePiece() 1085 SM.getLocForStartOfFile(LPosInfo.first).getLocWithOffset(DisplayPos); in HandlePiece() 1197 R.InsertTextBefore(R.getSourceMgr().getLocForStartOfFile(BugFileID),
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/ |
| H A D | IncludeFixer.cpp | 169 CI->getSourceManager().getLocForStartOfFile(FID); in MaybeDiagnoseMissingCompleteType() 289 SourceLocation StartOfFile = SM.getLocForStartOfFile(FID); in CorrectTypo() 363 .getLocForStartOfFile(CI->getSourceManager().getMainFileID()) in query() 368 CI->getSourceManager().getLocForStartOfFile( in query()
|
| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | SourceManagerTest.cpp | 79 SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in TEST_F() 92 SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in TEST_F() 105 SourceMgr.getLocForStartOfFile(SourceMgr.getMainFileID()); in TEST_F() 249 auto BeginLoc = SourceMgr.getLocForStartOfFile(MainFileID); in TEST_F() 254 auto HeaderLoc = SourceMgr.getLocForStartOfFile(HeaderFileID); in TEST_F()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | IncludeCleanerTests.cpp | 424 SM.getPresumedLoc(SM.getLocForStartOfFile(FID)).getFilename()); in TEST() 477 SM.getPresumedLoc(SM.getLocForStartOfFile(FID)).getFilename()); in TEST() 511 SM.getPresumedLoc(SM.getLocForStartOfFile(FID)).getFilename()); in TEST()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | ScratchBuffer.cpp | 81 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID); in AllocScratchBuffer()
|
| H A D | PPLexerChange.cpp | 81 SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID); in EnterSourceFile() 89 CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID); in EnterSourceFile() 437 SourceMgr.getLocForStartOfFile(CurPPLexer->getFileID()) == in HandleEndOfFile()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/ |
| H A D | TraversalScope.cpp | 21 Match("TU", SM.getLocForStartOfFile(SM.getMainFileID())); in VisitTranslationUnitDecl()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | LexerUtils.cpp | 27 auto StartOfFile = SM.getLocForStartOfFile(SM.getFileID(Location)); in getPreviousToken() 123 Lexer RawLexer(SM.getLocForStartOfFile(LocInfo.first), Context.getLangOpts(), in getQualifyingToken()
|
| H A D | IncludeInserter.cpp | 65 SourceMgr->getFilename(SourceMgr->getLocForStartOfFile(FileID)), Style); in getOrCreate()
|
| H A D | IncludeSorter.cpp | 169 SourceMgr->getLocForStartOfFile(CurrentFileID), IncludeStmt); in createIncludeInsertion()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | CommentTextTest.cpp | 39 SourceMgr.getLocForStartOfFile(File).getLocWithOffset( in formatComment()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndexHigh.cpp | 232 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findIdRefsInFile() 327 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findMacroRefsInFile() 392 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findIncludesInFile()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | KernelNameRestrictionCheck.cpp | 84 Check.diag(SM.getLocForStartOfFile(SM.getMainFileID()), in EndOfMainFile()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousSemicolonCheck.cpp | 58 Lexer Lexer(SM.getLocForStartOfFile(FID), Ctxt.getLangOpts(), in check()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | Transforms.cpp | 150 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), in findSemiAfterLocation() 398 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), in rewritePropertyAttribute() 479 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), in addPropertyAttribute()
|
| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | Commit.cpp | 25 SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID()); in getFileLocation() 37 SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID()); in getInsertFromRange()
|
| H A D | EditedSource.cpp | 387 SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID()); in applyRewrite() 458 SourceLocation BLoc = SourceMgr.getLocForStartOfFile(BeginOffs.getFID()); in getSourceText()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | IssueHash.cpp | 157 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | StaticAssertCheck.cpp | 150 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(AssertLoc)), Opts, in getLastParenLoc()
|
| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | TokenAnalyzer.cpp | 66 SourceLocation StartOfFile = Env->SM.getLocForStartOfFile(Env->ID); in make()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseTrailingReturnTypeCheck.cpp | 148 Lexer Lexer(SM.getLocForStartOfFile(Loc.first), LangOpts, File.begin(), in findTrailingReturnTypeSourceLocation() 229 Lexer Lexer(SM.getLocForStartOfFile(Loc.first), LangOpts, File.begin(), in classifyTokensBeforeFunctionName()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/Syntax/ |
| H A D | TokensTest.cpp | 182 Ls.first = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()) in RangeIs() 184 Ls.second = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()) in RangeIs() 377 auto StartLoc = SourceMgr->getLocForStartOfFile(SourceMgr->getMainFileID()); in TEST_F()
|