| /llvm-project/clang/lib/Rewrite/ |
| H A D | DeltaTree.cpp | |
| /llvm-project/clang/lib/Frontend/ |
| H A D | ASTUnit.cpp | 1309 SourceLocation FileLoc = SM.getFileLoc(InDiag.getLocation()); in makeStandaloneDiagnostic() 1310 OutDiag.Filename = std::string(SM.getFilename(FileLoc)); in makeStandaloneDiagnostic() 1313 OutDiag.LocOffset = SM.getFileOffset(FileLoc); in makeStandaloneDiagnostic() 2406 SourceLocation FileLoc; in TranslateStoredDiagnostics() 2410 FileLoc = SrcMgr.getLocForStartOfFile(FID); in TranslateStoredDiagnostics() 2411 PreambleSrcLocCache[SD.Filename] = FileLoc; in TranslateStoredDiagnostics() 2413 FileLoc = ItFileID->getValue(); in TranslateStoredDiagnostics() 2416 if (FileLoc.isInvalid()) in TranslateStoredDiagnostics() 2418 SourceLocation L = FileLoc.getLocWithOffset(SD.LocOffset); in TranslateStoredDiagnostics() 2424 SourceLocation BL = FileLoc in TranslateStoredDiagnostics() 1305 SourceLocation FileLoc = SM.getFileLoc(InDiag.getLocation()); makeStandaloneDiagnostic() local 2397 SourceLocation FileLoc; TranslateStoredDiagnostics() local 2453 SourceLocation FileLoc = SM.getFileLoc(Loc); addFileLevelDecl() local 2531 SourceLocation FileLoc = SM.translateFileLineCol(File, 1, 1); getLocation() local 2548 SourceLocation FileLoc mapLocationFromPreamble() local 2570 SourceLocation FileLoc = SourceMgr->getLocForStartOfFile(PreambleID); mapLocationToPreamble() local [all...] |
| /llvm-project/clang/lib/Tooling/Refactoring/ |
| H A D | ASTSelection.cpp | 87 SourceLocation FileLoc; in TraverseDecl() local 89 FileLoc = DeclRange.getEnd(); in TraverseDecl() 91 FileLoc = SM.getSpellingLoc(DeclRange.getBegin()); in TraverseDecl() 92 if (SM.getFileID(FileLoc) != TargetFile) in TraverseDecl()
|
| /llvm-project/clang/include/clang/AST/ |
| H A D | CommentLexer.h | 242 SourceLocation FileLoc; variable 313 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation() 353 const CommandTraits &Traits, SourceLocation FileLoc,
|
| /llvm-project/clang/lib/Lex/ |
| H A D | Lexer.cpp | 186 FileLoc(PP.getSourceManager().getLocForStartOfFile(FID)), in Lexer() 201 : FileLoc(fileloc), LangOpts(langOpts), LineComment(LangOpts.LineComment), in Lexer() 264 L->FileLoc = SM.createExpansionLoc(SM.getLocForStartOfFile(SpellingFID), in Create_PragmaLexer() 617 SourceLocation FileLoc = SM.getSpellingLoc(Loc); in GetBeginningOfToken() 618 SourceLocation BeginFileLoc = getBeginningOfFileToken(FileLoc, SM, LangOpts); in GetBeginningOfToken() local 619 std::pair<FileID, unsigned> FileLocInfo = SM.getDecomposedLoc(FileLoc); in GetBeginningOfToken() 643 SourceLocation FileLoc = SourceLocation::getFromRawEncoding(StartOffset); in ComputePreamble() 644 Lexer TheLexer(FileLoc, LangOpts, Buffer.begin(), Buffer.begin(), in ComputePreamble() local 786 return PreambleBounds(End.getRawEncoding() - FileLoc.getRawEncoding(), in ComputePreamble() 1187 Preprocessor &PP, SourceLocation FileLoc, unsigne 1190 GetMappedTokenLoc(Preprocessor & PP,SourceLocation FileLoc,unsigned CharNo,unsigned TokLen) GetMappedTokenLoc() argument [all...] |
| /llvm-project/clang/include/clang/Lex/ |
| H A D | Lexer.h | 93 SourceLocation FileLoc; variable 173 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts, 199 SourceLocation getFileLoc() const { return FileLoc; } in getFileLoc()
|
| /llvm-project/clang/tools/clang-refactor/ |
| H A D | TestSupport.cpp | 53 SourceLocation FileLoc = SM.getLocForStartOfFile(FID); in foreachRange() local 58 SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Range.Begin)); in foreachRange() 60 SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Range.End)); in foreachRange()
|
| /llvm-project/clang/tools/libclang/ |
| H A D | CXSourceLocation.cpp | 370 SourceLocation FileLoc = SM.getFileLoc(Loc); in clang_getFileLocation() 371 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(FileLoc); in clang_getFileLocation() 358 SourceLocation FileLoc = SM.getFileLoc(Loc); clang_getFileLocation() local
|
| H A D | CXIndexDataConsumer.cpp | 945 SourceLocation FileLoc = SM.getFileLoc(Loc); in isNotFromSourceFile() local 946 FileID FID = SM.getFileID(FileLoc); in isNotFromSourceFile()
|
| /llvm-project/clang/lib/AST/ |
| H A D | CommentLexer.cpp | 738 const CommandTraits &Traits, SourceLocation FileLoc, in Lexer() argument 742 FileLoc(FileLoc), ParseCommands(ParseCommands), in Lexer()
|
| /llvm-project/clang-tools-extra/clangd/index/ |
| H A D | SymbolCollector.cpp | 666 auto FileLoc = SM.getFileLoc(Loc); in handleMacros() 667 auto FID = SM.getFileID(FileLoc); in handleMacros() 669 addRef(ID, SymbolRef{FileLoc, FID, Roles, index::getSymbolInfo(ND).Kind, in handleMacros() 671 isSpelled(FileLoc, *ND)}); in handleMacros() 617 auto FileLoc = SM.getFileLoc(Loc); handleDeclOccurrence() local
|
| /llvm-project/clang/lib/ExtractAPI/ |
| H A D | ExtractAPIConsumer.cpp | 183 auto FileLoc = SM.getFileLoc(Loc); in operator ()() local 184 FileID FID = SM.getFileID(FileLoc); in operator ()()
|
| /llvm-project/clang/lib/InstallAPI/ |
| H A D | Visitor.cpp | 111 auto FileLoc = SrcMgr.getFileLoc(Loc); in getAccessForDecl() local 112 FileID ID = SrcMgr.getFileID(FileLoc); in getAccessForDecl()
|
| /llvm-project/llvm/tools/llvm-rc/ |
| H A D | ResourceScriptStmt.cpp | 273 return OS << FileLoc << "\n"; in log()
|
| H A D | ResourceScriptStmt.h | 750 StringRef FileLoc; variable 756 : RCResource(Flags), Type(ResourceType), FileLoc(FileLocation), in UserDefinedResource()
|
| H A D | ResourceFileWriter.cpp | 1369 return appendFile(Res->FileLoc); in writeUserDefinedBody()
|
| /llvm-project/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 1682 SourceLocation FileLoc = SourceLocation::getFileLoc(Entry.getOffset()); in translateLineCol() 1685 return FileLoc; in translateLineCol() 1703 return FileLoc.getLocWithOffset(Size); in translateLineCol() 1710 return FileLoc.getLocWithOffset(FilePos); 1717 return FileLoc.getLocWithOffset(FilePos + i); in computeMacroArgsCache() 1667 SourceLocation FileLoc = SourceLocation::getFileLoc(Entry.getOffset()); translateLineCol() local
|
| /llvm-project/clang-tools-extra/clangd/ |
| H A D | InlayHints.cpp | 923 auto FileLoc = SM.getFileLoc(E->getBeginLoc()); in chooseParameterNames() 924 auto Decomposed = SM.getDecomposedLoc(FileLoc); 857 auto FileLoc = SM.getFileLoc(E->getBeginLoc()); isPrecededByParamNameComment() local
|
| /llvm-project/clang/lib/CodeGen/ |
| H A D | CGDebugInfo.h | 620 SourceLocation FileLoc);
|
| H A D | CGDebugInfo.cpp | 3591 SourceLocation FileLoc) { in UnwrapTypeForDebugInfo() 3592 llvm::DIFile *FName = getOrCreateFile(FileLoc); in UnwrapTypeForDebugInfo() 3547 CreateTempMacroFile(llvm::DIMacroFile * Parent,SourceLocation LineLoc,SourceLocation FileLoc) CreateTempMacroFile() argument
|
| /llvm-project/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 6919 SourceLocation FileLoc = SM.getFileLoc(Loc); in FunctionDefinitionInstantiated() 6920 assert(SM.isLocalSourceLocation(FileLoc)); in FunctionDefinitionInstantiated() 6923 std::tie(FID, Offset) = SM.getDecomposedLoc(FileLoc); 6310 SourceLocation FileLoc = SM.getFileLoc(Loc); associateDeclWithFile() local
|