Home
last modified time | relevance | path

Searched refs:getLocForStartOfFile (Results 1 – 25 of 74) sorted by relevance

123

/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRefactoringActionRulesTest.cpp103 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 DSourceCodeTest.cpp82 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 DTestingSupport.cpp94 SourceManager.getLocForStartOfFile(SourceManager.getMainFileID()) in buildStatementToAnnotationMapping()
117 SourceManager.getLocForStartOfFile(SourceManager.getMainFileID()) in buildStatementToAnnotationMapping()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp409 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 DIncludeFixer.cpp169 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 DSourceManagerTest.cpp79 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 DIncludeCleanerTests.cpp424 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 DScratchBuffer.cpp81 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID); in AllocScratchBuffer()
H A DPPLexerChange.cpp81 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 DTraversalScope.cpp21 Match("TU", SM.getLocForStartOfFile(SM.getMainFileID())); in VisitTranslationUnitDecl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DLexerUtils.cpp27 auto StartOfFile = SM.getLocForStartOfFile(SM.getFileID(Location)); in getPreviousToken()
123 Lexer RawLexer(SM.getLocForStartOfFile(LocInfo.first), Context.getLangOpts(), in getQualifyingToken()
H A DIncludeInserter.cpp65 SourceMgr->getFilename(SourceMgr->getLocForStartOfFile(FileID)), Style); in getOrCreate()
H A DIncludeSorter.cpp169 SourceMgr->getLocForStartOfFile(CurrentFileID), IncludeStmt); in createIncludeInsertion()
/llvm-project-15.0.7/clang/unittests/AST/
H A DCommentTextTest.cpp39 SourceMgr.getLocForStartOfFile(File).getLocWithOffset( in formatComment()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndexHigh.cpp232 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 DKernelNameRestrictionCheck.cpp84 Check.diag(SM.getLocForStartOfFile(SM.getMainFileID()), in EndOfMainFile()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousSemicolonCheck.cpp58 Lexer Lexer(SM.getLocForStartOfFile(FID), Ctxt.getLangOpts(), in check()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransforms.cpp150 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 DCommit.cpp25 SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID()); in getFileLocation()
37 SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID()); in getInsertFromRange()
H A DEditedSource.cpp387 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 DIssueHash.cpp157 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(StartOfLine)), LangOpts, in NormalizeLine()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DStaticAssertCheck.cpp150 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(AssertLoc)), Opts, in getLastParenLoc()
/llvm-project-15.0.7/clang/lib/Format/
H A DTokenAnalyzer.cpp66 SourceLocation StartOfFile = Env->SM.getLocForStartOfFile(Env->ID); in make()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseTrailingReturnTypeCheck.cpp148 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 DTokensTest.cpp182 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()

123