| /llvm-project-15.0.7/clang/lib/Rewrite/ |
| H A D | DeltaTree.cpp | 42 unsigned FileLoc; member 47 Delta.FileLoc = Loc; in get() 191 while (i != e && FileIndex > getValue(i).FileLoc) in DoInsertion() 223 if (InsertRes->Split.FileLoc > FileIndex) in DoInsertion() 266 if (SubSplit.FileLoc < InsertRes->Split.FileLoc) in DoInsertion() 276 while (i != e && SubSplit.FileLoc > InsertSide->getValue(i).FileLoc) in DoInsertion() 353 assert(N->getValue(i-1).FileLoc < N->getValue(i).FileLoc); in VerifyTree() 367 assert(IN->getValue(i-1).FileLoc < IVal.FileLoc); in VerifyTree() 373 IVal.FileLoc); in VerifyTree() 376 assert(IN->getChild(i+1)->getValue(0).FileLoc > IVal.FileLoc); in VerifyTree() [all …]
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | ASTUnit.cpp | 1261 OutDiag.LocOffset = SM.getFileOffset(FileLoc); in makeStandaloneDiagnostic() 2351 SourceLocation FileLoc; in TranslateStoredDiagnostics() local 2355 FileLoc = SrcMgr.getLocForStartOfFile(FID); in TranslateStoredDiagnostics() 2356 PreambleSrcLocCache[SD.Filename] = FileLoc; in TranslateStoredDiagnostics() 2358 FileLoc = ItFileID->getValue(); in TranslateStoredDiagnostics() 2361 if (FileLoc.isInvalid()) in TranslateStoredDiagnostics() 2407 SourceLocation FileLoc = SM.getFileLoc(Loc); in addFileLevelDecl() local 2408 assert(SM.isLocalSourceLocation(FileLoc)); in addFileLevelDecl() 2502 SourceLocation FileLoc in mapLocationFromPreamble() local 2504 return FileLoc.getLocWithOffset(Offs); in mapLocationFromPreamble() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/ |
| H A D | ASTSelection.cpp | 86 SourceLocation FileLoc; in TraverseDecl() local 88 FileLoc = DeclRange.getEnd(); in TraverseDecl() 90 FileLoc = SM.getSpellingLoc(DeclRange.getBegin()); in TraverseDecl() 91 if (SM.getFileID(FileLoc) != TargetFile) in TraverseDecl()
|
| /llvm-project-15.0.7/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-15.0.7/clang/lib/Lex/ |
| H A D | Lexer.cpp | 139 FileLoc(PP.getSourceManager().getLocForStartOfFile(FID)), in Lexer() 570 SourceLocation FileLoc = SM.getSpellingLoc(Loc); in GetBeginningOfToken() local 1127 assert(FileLoc.isMacroID() && "Must be a macro expansion"); in GetMappedTokenLoc() 1136 SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc); in GetMappedTokenLoc() 1141 CharSourceRange II = SM.getImmediateExpansionRange(FileLoc); in GetMappedTokenLoc() 1156 if (FileLoc.isFileID()) in getSourceLocation() 1157 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation() 1162 return GetMappedTokenLoc(*PP, FileLoc, CharNo, TokLen); in getSourceLocation() 2226 FileLoc.getLocWithOffset(StartOfFilename - BufferStart), in codeCompleteIncludedFile() 2704 !(PP && PP->getCodeCompletionFileLoc() == FileLoc)) { in SkipBlockComment() [all …]
|
| /llvm-project-15.0.7/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-15.0.7/clang/tools/clang-refactor/ |
| H A D | TestSupport.cpp | 52 SourceLocation FileLoc = SM.getLocForStartOfFile(FID); in foreachRange() local 57 SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Range.Begin)); in foreachRange() 59 SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Range.End)); in foreachRange()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXSourceLocation.cpp | 358 SourceLocation FileLoc = SM.getFileLoc(Loc); in clang_getFileLocation() local 359 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(FileLoc); in clang_getFileLocation()
|
| H A D | CXIndexDataConsumer.cpp | 949 SourceLocation FileLoc = SM.getFileLoc(Loc); in isNotFromSourceFile() local 950 FileID FID = SM.getFileID(FileLoc); in isNotFromSourceFile()
|
| /llvm-project-15.0.7/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-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | SarifDiagnostics.cpp | 139 if (const json::Object *FileLoc = Obj->getObject("location")) { in createArtifactLocation() local 140 Optional<StringRef> URI = FileLoc->getString("uri"); in createArtifactLocation()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | SymbolCollector.cpp | 607 auto FileLoc = SM.getFileLoc(Loc); in handleDeclOccurrence() local 608 auto FID = SM.getFileID(FileLoc); in handleDeclOccurrence() 610 addRef(ID, SymbolRef{FileLoc, FID, Roles, in handleDeclOccurrence() 612 isSpelled(FileLoc, *ND)}); in handleDeclOccurrence()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 1709 SourceLocation FileLoc = SourceLocation::getFileLoc(Entry.getOffset()); in translateLineCol() local 1712 return FileLoc; in translateLineCol() 1730 return FileLoc.getLocWithOffset(Size); in translateLineCol() 1737 return FileLoc.getLocWithOffset(FilePos); in translateLineCol() 1744 return FileLoc.getLocWithOffset(FilePos + i); in translateLineCol()
|
| /llvm-project-15.0.7/llvm/tools/llvm-rc/ |
| H A D | ResourceScriptStmt.cpp | 254 return OS << FileLoc << "\n"; in log()
|
| H A D | ResourceScriptStmt.h | 692 StringRef FileLoc; variable 698 : RCResource(Flags), Type(ResourceType), FileLoc(FileLocation), in UserDefinedResource()
|
| H A D | ResourceFileWriter.cpp | 1307 return appendFile(Res->FileLoc); in writeUserDefinedBody()
|
| /llvm-project-15.0.7/clang/lib/ExtractAPI/ |
| H A D | ExtractAPIConsumer.cpp | 180 auto FileLoc = SM.getFileLoc(Loc); in isLocationInKnownFile() local 181 FileID FID = SM.getFileID(FileLoc); in isLocationInKnownFile()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGDebugInfo.h | 578 SourceLocation FileLoc);
|
| H A D | CGDebugInfo.cpp | 3259 SourceLocation FileLoc) { in CreateTempMacroFile() argument 3260 llvm::DIFile *FName = getOrCreateFile(FileLoc); in CreateTempMacroFile()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 5479 SourceLocation FileLoc = SM.getFileLoc(Loc); in associateDeclWithFile() local 5480 assert(SM.isLocalSourceLocation(FileLoc)); in associateDeclWithFile() 5483 std::tie(FID, Offset) = SM.getDecomposedLoc(FileLoc); in associateDeclWithFile()
|