/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
H A D | UseNullptrCheck.cpp | 158 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 D | UseConstraintsCheck.cpp | 196 return SM.getFileLoc(Element.getRAngleLoc()); in getRAngleFileLoc()
|
/llvm-project/clang/lib/Index/ |
H A D | FileIndexRecord.cpp | 59 SourceLocation Loc = SM.getFileLoc(D->getLocation()); in print() 69 SourceLocation Loc = SM.getFileLoc(MI->getDefinitionLoc()); in print()
|
H A D | IndexingContext.cpp | 116 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 D | core_main.cpp | 111 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 D | SourceLocation.cpp | 178 FullSourceLoc FullSourceLoc::getFileLoc() const { in getFileLoc() function in FullSourceLoc 180 return FullSourceLoc(SrcMgr->getFileLoc(*this), *SrcMgr); in getFileLoc()
|
H A D | NoSanitizeList.cpp | 58 containsFile(Mask, SM.getFilename(SM.getFileLoc(Loc)), Category); in containsLocation()
|
H A D | XRayLists.cpp | 75 return this->shouldImbueFunctionsInFile(SM.getFilename(SM.getFileLoc(Loc)), in shouldImbueLocation()
|
H A D | ProfileList.cpp | 135 return isFileExcluded(SM.getFilename(SM.getFileLoc(Loc)), Kind); in isLocationExcluded()
|
/llvm-project/clang/lib/Lex/ |
H A D | PPLexerChange.cpp | 132 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 D | PreprocessingRecord.cpp | 85 return SM.isInFileID(SM.getFileLoc(Loc), FID); in isPreprocessedEntityIfInFileID()
|
/llvm-project/clang-tools-extra/include-cleaner/unittests/ |
H A D | WalkASTTest.cpp | 72 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 D | InlineFunctionDeclCheck.cpp | 85 auto Loc = FullSourceLoc(Result.SourceManager->getFileLoc(SrcBegin), in check()
|
/llvm-project/clang/include/clang/Basic/ |
H A D | SourceLocation.h | 120 static SourceLocation getFileLoc(UIntTy ID) { 392 FullSourceLoc getFileLoc() const;
|
H A D | SourceManager.h | 1156 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 D | CloexecCheck.cpp | 64 Lexer::getLocForEndOfToken(SM.getFileLoc(FlagArg->getEndLoc()), 0, SM, in insertMacroFlag()
|
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
H A D | RemoveUsingNamespace.cpp | 186 Loc = SM.getFileLoc(Ref.NameLoc); in apply()
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | Compiler.cpp | 29 auto Loc = SourceMgr.getFileLoc(Info.getLocation()); in log()
|
H A D | InlayHints.cpp | 923 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 D | XRefs.cpp | 927 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 D | CXIndexDataConsumer.cpp | 166 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 D | CXSourceLocation.cpp | 370 SourceLocation FileLoc = SM.getFileLoc(Loc); in clang_getFileLocation()
|
/llvm-project/clang/include/clang/Lex/ |
H A D | Lexer.h | 195 /// 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 D | ExtractAPIConsumer.cpp | 183 auto FileLoc = SM.getFileLoc(Loc); in operator ()()
|
/llvm-project/clang-tools-extra/include-cleaner/lib/ |
H A D | HTMLReport.cpp | 206 auto [File, Offset] = SM.getDecomposedLoc(SM.getFileLoc(SR.RefLocation)); in fillTarget()
|