Home
last modified time | relevance | path

Searched refs:FileLoc (Results 1 – 21 of 21) sorted by relevance

/llvm-project/clang/lib/Rewrite/
H A DDeltaTree.cpp
/llvm-project/clang/lib/Frontend/
H A DASTUnit.cpp1309 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 DASTSelection.cpp87 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 DCommentLexer.h242 SourceLocation FileLoc; variable
313 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
353 const CommandTraits &Traits, SourceLocation FileLoc,
/llvm-project/clang/lib/Lex/
H A DLexer.cpp186 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 DLexer.h93 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 DTestSupport.cpp53 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 DCXSourceLocation.cpp370 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 DCXIndexDataConsumer.cpp945 SourceLocation FileLoc = SM.getFileLoc(Loc); in isNotFromSourceFile() local
946 FileID FID = SM.getFileID(FileLoc); in isNotFromSourceFile()
/llvm-project/clang/lib/AST/
H A DCommentLexer.cpp738 const CommandTraits &Traits, SourceLocation FileLoc, in Lexer() argument
742 FileLoc(FileLoc), ParseCommands(ParseCommands), in Lexer()
/llvm-project/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp666 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 DExtractAPIConsumer.cpp183 auto FileLoc = SM.getFileLoc(Loc); in operator ()() local
184 FileID FID = SM.getFileID(FileLoc); in operator ()()
/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp111 auto FileLoc = SrcMgr.getFileLoc(Loc); in getAccessForDecl() local
112 FileID ID = SrcMgr.getFileID(FileLoc); in getAccessForDecl()
/llvm-project/llvm/tools/llvm-rc/
H A DResourceScriptStmt.cpp273 return OS << FileLoc << "\n"; in log()
H A DResourceScriptStmt.h750 StringRef FileLoc; variable
756 : RCResource(Flags), Type(ResourceType), FileLoc(FileLocation), in UserDefinedResource()
H A DResourceFileWriter.cpp1369 return appendFile(Res->FileLoc); in writeUserDefinedBody()
/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp1682 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 DInlayHints.cpp923 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 DCGDebugInfo.h620 SourceLocation FileLoc);
H A DCGDebugInfo.cpp3591 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 DASTWriter.cpp6919 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