Home
last modified time | relevance | path

Searched refs:getFileLoc (Results 1 – 25 of 38) sorted by relevance

12

/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DUseNullptrCheck.cpp158 if (SM.getFileLoc(S->getBeginLoc()) != CastLoc) in VisitStmt()
255 SourceLocation FileLocStart = SM.getFileLoc(StartLoc), in VisitStmt()
256 FileLocEnd = SM.getFileLoc(EndLoc); in VisitStmt()
278 StartLoc = SM.getFileLoc(StartLoc); in VisitStmt()
279 EndLoc = SM.getFileLoc(EndLoc);
318 MacroArgUsageVisitor ArgUsageVisitor(SM.getFileLoc(CastLoc), SM);
H A DUseConstraintsCheck.cpp196 return SM.getFileLoc(Element.getRAngleLoc()); in getRAngleFileLoc()
/llvm-project/clang/lib/Index/
H A DFileIndexRecord.cpp59 SourceLocation Loc = SM.getFileLoc(D->getLocation()); in print()
69 SourceLocation Loc = SM.getFileLoc(MI->getDefinitionLoc()); in print()
H A DIndexingContext.cpp116 FileID FID = SM.getFileID(SM.getFileLoc(Loc)); in importedModule()
368 FileID FID = SM.getFileID(SM.getFileLoc(Loc)); in handleDeclOccurrence()
496 FileID FID = SM.getFileID(SM.getFileLoc(Loc)); in shouldIndexMacroOccurrence()
/llvm-project/clang/tools/c-index-test/
H A Dcore_main.cpp111 Loc = SM.getFileLoc(Loc); in handleDeclOccurrence()
149 Loc = SM.getFileLoc(Loc); in handleModuleOccurrence()
172 Loc = SM.getFileLoc(Loc); in handleMacroOccurrence()
/llvm-project/clang/lib/Basic/
H A DSourceLocation.cpp178 FullSourceLoc FullSourceLoc::getFileLoc() const { in getFileLoc() function in FullSourceLoc
180 return FullSourceLoc(SrcMgr->getFileLoc(*this), *SrcMgr); in getFileLoc()
H A DNoSanitizeList.cpp58 containsFile(Mask, SM.getFilename(SM.getFileLoc(Loc)), Category); in containsLocation()
H A DXRayLists.cpp75 return this->shouldImbueFunctionsInFile(SM.getFilename(SM.getFileLoc(Loc)), in shouldImbueLocation()
H A DProfileList.cpp135 return isFileExcluded(SM.getFilename(SM.getFileLoc(Loc)), Kind); in isLocationExcluded()
/llvm-project/clang/lib/Lex/
H A DPPLexerChange.cpp132 SourceMgr.getFileCharacteristic(CurLexer->getFileLoc()); in EnterSourceFileWithLexer()
140 Callbacks->FileChanged(CurLexer->getFileLoc(), PPCallbacks::EnterFile, in EnterSourceFileWithLexer()
557 if (CurLexer->getFileLoc() == CodeCompletionFileLoc) in HandleEndOfFile()
563 Diag(CurLexer->getFileLoc(), diag::err_pp_through_header_not_seen) in HandleEndOfFile()
H A DPreprocessingRecord.cpp85 return SM.isInFileID(SM.getFileLoc(Loc), FID); in isPreprocessedEntityIfInFileID()
/llvm-project/clang-tools-extra/include-cleaner/unittests/
H A DWalkASTTest.cpp72 if (SM.getFileLoc(Loc) != ReferencingLoc) in testWalk()
74 auto NDLoc = SM.getDecomposedLoc(SM.getFileLoc(ND.getLocation())); in testWalk()
/llvm-project/clang-tools-extra/clang-tidy/llvmlibc/
H A DInlineFunctionDeclCheck.cpp85 auto Loc = FullSourceLoc(Result.SourceManager->getFileLoc(SrcBegin), in check()
/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h120 static SourceLocation getFileLoc(UIntTy ID) {
392 FullSourceLoc getFileLoc() const;
H A DSourceManager.h1156 return SourceLocation::getFileLoc(Entry->getOffset()); in getLocForStartOfFile()
1164 return SourceLocation::getFileLoc(Entry->getOffset() + in getLocForEndOfFile()
1204 SourceLocation getFileLoc(SourceLocation Loc) const { in getFileLoc() function
1264 return Entry->isFile() ? SourceLocation::getFileLoc(GlobalOffset) in getComposedLoc()
/llvm-project/clang-tools-extra/clang-tidy/android/
H A DCloexecCheck.cpp64 Lexer::getLocForEndOfToken(SM.getFileLoc(FlagArg->getEndLoc()), 0, SM, in insertMacroFlag()
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DRemoveUsingNamespace.cpp186 Loc = SM.getFileLoc(Ref.NameLoc); in apply()
/llvm-project/clang-tools-extra/clangd/
H A DCompiler.cpp29 auto Loc = SourceMgr.getFileLoc(Info.getLocation()); in log()
H A DInlayHints.cpp923 auto FileLoc = SM.getFileLoc(E->getBeginLoc()); in chooseParameterNames()
1127 SM.getDecomposedLoc(SM.getFileLoc(BraceRange.getBegin())); in inlayHints()
1128 auto RBraceLoc = SM.getFileLoc(BraceRange.getEnd()); in inlayHints()
H A DXRefs.cpp927 L = SM.getFileLoc(L); in handleDeclOccurrence()
1205 Loc = TB.sourceManager().getFileLoc(Loc); in toHighlight()
1336 auto Loc = SM.getFileLoc(Ref.RefLocation); in maybeFindIncludeReferences()
1667 SourceLocation BeginLoc = SM.getFileLoc(ND.getBeginLoc()); in operator <<()
1668 SourceLocation EndLoc = SM.getFileLoc(ND.getEndLoc()); in operator <<()
/llvm-project/clang/tools/libclang/
H A DCXIndexDataConsumer.cpp166 Loc = getASTContext().getSourceManager().getFileLoc(Loc); in handleDeclOccurrence()
945 SourceLocation FileLoc = SM.getFileLoc(Loc); in isNotFromSourceFile()
1014 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SM.getFileLoc(Loc)); in markEntityOccurrenceInFile()
1093 Loc = SM.getFileLoc(Loc); in translateLoc()
H A DCXSourceLocation.cpp370 SourceLocation FileLoc = SM.getFileLoc(Loc); in clang_getFileLocation()
/llvm-project/clang/include/clang/Lex/
H A DLexer.h195 /// getFileLoc - Return the File Location for the file we are lexing out of.
199 SourceLocation getFileLoc() const { return FileLoc; } in getFileLoc() function
/llvm-project/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp183 auto FileLoc = SM.getFileLoc(Loc); in operator ()()
/llvm-project/clang-tools-extra/include-cleaner/lib/
H A DHTMLReport.cpp206 auto [File, Offset] = SM.getDecomposedLoc(SM.getFileLoc(SR.RefLocation)); in fillTarget()

12