Home
last modified time | relevance | path

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

12

/external/clang/lib/Rewrite/
DDeltaTree.cpp40 unsigned FileLoc; member
45 Delta.FileLoc = Loc; in get()
186 while (i != e && FileIndex > getValue(i).FileLoc) in DoInsertion()
191 if (i != e && getValue(i).FileLoc == FileIndex) { in DoInsertion()
218 if (InsertRes->Split.FileLoc > FileIndex) in DoInsertion()
261 if (SubSplit.FileLoc < InsertRes->Split.FileLoc) in DoInsertion()
271 while (i != e && SubSplit.FileLoc > InsertSide->getValue(i).FileLoc) in DoInsertion()
350 assert(N->getValue(i-1).FileLoc < N->getValue(i).FileLoc); in VerifyTree()
364 assert(IN->getValue(i-1).FileLoc < IVal.FileLoc); in VerifyTree()
369 assert(IChild->getValue(IChild->getNumValuesUsed()-1).FileLoc < in VerifyTree()
[all …]
/external/llvm-project/clang/lib/Rewrite/
DDeltaTree.cpp42 unsigned FileLoc; member
47 Delta.FileLoc = Loc; in get()
191 while (i != e && FileIndex > getValue(i).FileLoc) in DoInsertion()
196 if (i != e && getValue(i).FileLoc == FileIndex) { 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()
372 assert(IChild->getValue(IChild->getNumValuesUsed()-1).FileLoc < in VerifyTree()
[all …]
/external/llvm-project/clang/lib/Frontend/
DASTUnit.cpp1270 SourceLocation FileLoc = SM.getFileLoc(InDiag.getLocation()); in makeStandaloneDiagnostic() local
1271 OutDiag.Filename = std::string(SM.getFilename(FileLoc)); in makeStandaloneDiagnostic()
1274 OutDiag.LocOffset = SM.getFileOffset(FileLoc); in makeStandaloneDiagnostic()
2375 SourceLocation FileLoc; in TranslateStoredDiagnostics() local
2379 FileLoc = SrcMgr.getLocForStartOfFile(FID); in TranslateStoredDiagnostics()
2380 PreambleSrcLocCache[SD.Filename] = FileLoc; in TranslateStoredDiagnostics()
2382 FileLoc = ItFileID->getValue(); in TranslateStoredDiagnostics()
2385 if (FileLoc.isInvalid()) in TranslateStoredDiagnostics()
2387 SourceLocation L = FileLoc.getLocWithOffset(SD.LocOffset); in TranslateStoredDiagnostics()
2393 SourceLocation BL = FileLoc.getLocWithOffset(Range.first); in TranslateStoredDiagnostics()
[all …]
/external/llvm/tools/sancov/
Dsancov.cc188 struct FileLoc { struct
189 bool operator<(const FileLoc &RHS) const { in operator <() argument
212 FileLoc Loc;
709 return FileLoc{AI.FileName, AI.Line}; in computeLineStatusMap()
712 return FileLoc{AI.FileName, AI.Line}; in computeLineStatusMap()
716 const FileLoc &Loc = P.first; in computeLineStatusMap()
786 typedef std::map<FileLoc, std::set<std::string>> FunctionLocs;
796 return FnLoc{FileLoc{AI.FileName, AI.Line}, AI.FunctionName}; in resolveFunctions()
815 auto FLoc = FileLoc{FileName, Loc.Loc.Line}; in resolveFunctions()
981 FileLoc Loc = FileLoc{FileName, Line}; in printReport()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DASTSelection.cpp86 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()
/external/llvm-project/clang/lib/Lex/
DLexer.cpp138 FileLoc(PP.getSourceManager().getLocForStartOfFile(FID)), in Lexer()
151 : FileLoc(fileloc), LangOpts(langOpts) { in Lexer()
211 L->FileLoc = SM.createExpansionLoc(SM.getLocForStartOfFile(SpellingFID), in Create_PragmaLexer()
566 SourceLocation FileLoc = SM.getSpellingLoc(Loc); in GetBeginningOfToken() local
567 SourceLocation BeginFileLoc = getBeginningOfFileToken(FileLoc, SM, LangOpts); in GetBeginningOfToken()
568 std::pair<FileID, unsigned> FileLocInfo = SM.getDecomposedLoc(FileLoc); in GetBeginningOfToken()
592 SourceLocation FileLoc = SourceLocation::getFromRawEncoding(StartOffset); in ComputePreamble() local
593 Lexer TheLexer(FileLoc, LangOpts, Buffer.begin(), Buffer.begin(), in ComputePreamble()
717 return PreambleBounds(End.getRawEncoding() - FileLoc.getRawEncoding(), in ComputePreamble()
1104 Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen);
[all …]
/external/llvm-project/clang/include/clang/AST/
DCommentLexer.h242 SourceLocation FileLoc; variable
313 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
350 const CommandTraits &Traits, SourceLocation FileLoc,
/external/clang/include/clang/AST/
DCommentLexer.h237 SourceLocation FileLoc; variable
309 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
348 SourceLocation FileLoc,
/external/clang/include/clang/Lex/
DLexer.h53 SourceLocation FileLoc; // Location for start of file. variable
108 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
134 SourceLocation getFileLoc() const { return FileLoc; } in getFileLoc()
/external/clang/lib/Lex/
DLexer.cpp111 FileLoc(PP.getSourceManager().getLocForStartOfFile(FID)), in Lexer()
133 : FileLoc(fileloc), LangOpts(langOpts) { in Lexer()
186 L->FileLoc = SM.createExpansionLoc(SM.getLocForStartOfFile(SpellingFID), in Create_PragmaLexer()
518 SourceLocation FileLoc = SM.getSpellingLoc(Loc); in GetBeginningOfToken() local
519 SourceLocation BeginFileLoc = getBeginningOfFileToken(FileLoc, SM, LangOpts); in GetBeginningOfToken()
520 std::pair<FileID, unsigned> FileLocInfo = SM.getDecomposedLoc(FileLoc); in GetBeginningOfToken()
544 SourceLocation FileLoc = SourceLocation::getFromRawEncoding(StartOffset); in ComputePreamble() local
545 Lexer TheLexer(FileLoc, LangOpts, Buffer.begin(), Buffer.begin(), in ComputePreamble()
1044 Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen);
1046 SourceLocation FileLoc, in GetMappedTokenLoc() argument
[all …]
/external/clang/lib/Frontend/
DASTUnit.cpp1306 SourceLocation FileLoc = SM.getFileLoc(InDiag.getLocation()); in makeStandaloneDiagnostic() local
1307 OutDiag.Filename = SM.getFilename(FileLoc); in makeStandaloneDiagnostic()
1310 OutDiag.LocOffset = SM.getFileOffset(FileLoc); in makeStandaloneDiagnostic()
2547 SourceLocation FileLoc = SrcMgr.getLocForStartOfFile(FID); in TranslateStoredDiagnostics() local
2548 if (FileLoc.isInvalid()) in TranslateStoredDiagnostics()
2550 SourceLocation L = FileLoc.getLocWithOffset(SD.LocOffset); in TranslateStoredDiagnostics()
2556 SourceLocation BL = FileLoc.getLocWithOffset(Range.first); in TranslateStoredDiagnostics()
2557 SourceLocation EL = FileLoc.getLocWithOffset(Range.second); in TranslateStoredDiagnostics()
2567 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics()
2568 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics()
[all …]
/external/llvm-project/clang/include/clang/Lex/
DLexer.h91 SourceLocation FileLoc; variable
150 Lexer(SourceLocation FileLoc, const LangOptions &LangOpts,
178 SourceLocation getFileLoc() const { return FileLoc; } in getFileLoc()
/external/llvm-project/clang/tools/clang-refactor/
DTestSupport.cpp52 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()
/external/clang/include/clang/Frontend/
DASTUnit.h217 SourceLocation FileLoc = SM.getLocForStartOfFile(SM.getPreambleFileID()); in getSourceRange() local
218 return SourceRange(FileLoc, FileLoc.getLocWithOffset(size()-1)); in getSourceRange()
/external/clang/tools/libclang/
DCXSourceLocation.cpp367 SourceLocation FileLoc = SM.getFileLoc(Loc); in clang_getFileLocation() local
368 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(FileLoc); in clang_getFileLocation()
DCXIndexDataConsumer.cpp940 SourceLocation FileLoc = SM.getFileLoc(Loc); in isNotFromSourceFile() local
941 FileID FID = SM.getFileID(FileLoc); in isNotFromSourceFile()
/external/llvm-project/clang/tools/libclang/
DCXSourceLocation.cpp358 SourceLocation FileLoc = SM.getFileLoc(Loc); in clang_getFileLocation() local
359 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(FileLoc); in clang_getFileLocation()
DCXIndexDataConsumer.cpp936 SourceLocation FileLoc = SM.getFileLoc(Loc); in isNotFromSourceFile() local
937 FileID FID = SM.getFileID(FileLoc); in isNotFromSourceFile()
/external/llvm-project/clang/lib/AST/
DCommentLexer.cpp742 const CommandTraits &Traits, SourceLocation FileLoc, in Lexer() argument
746 FileLoc(FileLoc), ParseCommands(ParseCommands), in Lexer()
/external/clang/lib/AST/
DCommentLexer.cpp729 SourceLocation FileLoc, in Lexer() argument
733 FileLoc(FileLoc), BufferPtr(BufferStart), in Lexer()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DSarifDiagnostics.cpp137 if (const json::Object *FileLoc = Obj->getObject("location")) { in createArtifactLocation() local
138 Optional<StringRef> URI = FileLoc->getString("uri"); in createArtifactLocation()
/external/clang/lib/Basic/
DSourceManager.cpp1740 SourceLocation FileLoc = SourceLocation::getFileLoc(Entry.getOffset()); in translateLineCol() local
1743 return FileLoc; in translateLineCol()
1763 return FileLoc.getLocWithOffset(Size); in translateLineCol()
1771 return FileLoc.getLocWithOffset(FilePos); in translateLineCol()
1778 return FileLoc.getLocWithOffset(FilePos + i); in translateLineCol()
/external/llvm-project/clang/lib/Basic/
DSourceManager.cpp1658 SourceLocation FileLoc = SourceLocation::getFileLoc(Entry.getOffset()); in translateLineCol() local
1661 return FileLoc; in translateLineCol()
1679 return FileLoc.getLocWithOffset(Size); in translateLineCol()
1686 return FileLoc.getLocWithOffset(FilePos); in translateLineCol()
1693 return FileLoc.getLocWithOffset(FilePos + i); in translateLineCol()
/external/llvm-project/llvm/tools/llvm-rc/
DResourceScriptStmt.cpp254 return OS << FileLoc << "\n"; in log()
DResourceScriptStmt.h691 StringRef FileLoc; variable
697 : RCResource(Flags), Type(ResourceType), FileLoc(FileLocation), in UserDefinedResource()

12