Home
last modified time | relevance | path

Searched refs:IncludeLoc (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DSourceMgr.h75 SMLoc IncludeLoc; member
139 return Buffers[i - 1].IncludeLoc; in getParentIncludeLoc()
145 SMLoc IncludeLoc) { in AddNewSourceBuffer() argument
148 NB.IncludeLoc = IncludeLoc; in AddNewSourceBuffer()
166 Buffers[OldNumBuffers].IncludeLoc = MainBufferIncludeLoc;
175 unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc,
252 void PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const;
/llvm-project-15.0.7/llvm/lib/Support/
H A DSourceMgr.cpp41 SMLoc IncludeLoc, in AddIncludeFile() argument
48 return AddNewSourceBuffer(std::move(*NewBufOrErr), IncludeLoc); in AddIncludeFile()
168 IncludeLoc(Other.IncludeLoc) { in SrcBuffer()
257 void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const { in PrintIncludeStack() argument
258 if (IncludeLoc == SMLoc()) in PrintIncludeStack()
261 unsigned CurBuf = FindBufferContainingLoc(IncludeLoc); in PrintIncludeStack()
264 PrintIncludeStack(getBufferInfo(CurBuf).IncludeLoc, OS); in PrintIncludeStack()
267 << ":" << FindLineNumber(IncludeLoc, CurBuf) << ":\n"; in PrintIncludeStack()
342 PrintIncludeStack(getBufferInfo(CurBuf).IncludeLoc, OS); in PrintMessage()
/llvm-project-15.0.7/clang/lib/Lex/
H A DHeaderSearch.cpp412 Diags.Report(IncludeLoc, diag::err_cannot_open_file) in getFileAndSuggestModule()
454 return HS.getFileAndSuggestModule(TmpDir, IncludeLoc, getDir(), in LookupFile()
503 HS.noteLookupUsage(HS.searchDirIdx(*this), IncludeLoc); in LookupFile()
735 SourceLocation IncludeLoc) { in checkMSVCHeaderSearch() argument
819 << FixItHint::CreateReplacement(IncludeLoc, NewInclude); in diagnoseFrameworkInclude()
837 StringRef Filename, SourceLocation IncludeLoc, bool isAngled, in LookupFile() argument
871 return getFileAndSuggestModule(Filename, IncludeLoc, nullptr, in LookupFile()
941 diagnoseFrameworkInclude(Diags, IncludeLoc, in LookupFile()
1088 cacheLookupSuccess(CacheLookup, It, IncludeLoc); in LookupFile()
1112 IncludeLoc)) { in LookupFile()
[all …]
/llvm-project-15.0.7/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp167 FullSourceLoc IncludeLoc = in emitIncludeStack() local
172 if (LastIncludeLoc == IncludeLoc) in emitIncludeStack()
175 LastIncludeLoc = IncludeLoc; in emitIncludeStack()
180 if (IncludeLoc.isValid()) in emitIncludeStack()
181 emitIncludeStackRecursively(IncludeLoc); in emitIncludeStack()
H A DPrintPreprocessedOutput.cpp339 SourceLocation IncludeLoc = UserLoc.getIncludeLoc(); in FileChanged() local
340 if (IncludeLoc.isValid()) in FileChanged()
341 MoveToLine(IncludeLoc, /*RequireStartOfLine=*/false); in FileChanged()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DHeaderSearch.h471 StringRef Filename, SourceLocation IncludeLoc, bool isAngled,
759 getFileAndSuggestModule(StringRef FileName, SourceLocation IncludeLoc,
768 SourceLocation IncludeLoc);
772 void noteLookupUsage(unsigned HitIdx, SourceLocation IncludeLoc);
H A DDirectoryLookup.h184 LookupFile(StringRef &Filename, HeaderSearch &HS, SourceLocation IncludeLoc,
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceManager.cpp566 SourceLocation IncludeLoc) { in createFileID() argument
569 IncludeLoc, FileCharacter, LoadedID, LoadedOffset); in createFileID()
580 SourceLocation IncludeLoc) { in createFileID() argument
582 LoadedID, LoadedOffset, IncludeLoc); in createFileID()
1545 SourceLocation IncludeLoc = FI.getIncludeLoc(); in getPresumedLoc() local
1573 IncludeLoc = getLocForStartOfFile(LocInfo.first); in getPresumedLoc()
1574 IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset); in getPresumedLoc()
1579 return PresumedLoc(Filename.data(), FID, LineNo, ColNo, IncludeLoc); in getPresumedLoc()
1782 SourceLocation IncludeLoc = File.getIncludeLoc(); in computeMacroArgsCache() local
1784 (IncludeLoc.isValid() && isInFileID(IncludeLoc, FID)) || in computeMacroArgsCache()
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSourceLocation.h306 SourceLocation IncludeLoc;
312 : Filename(FN), ID(FID), Line(Ln), Col(Co), IncludeLoc(IL) {}
355 return IncludeLoc;
H A DSourceManager.h291 SourceLocation IncludeLoc; variable
311 X.IncludeLoc = IL; in get()
321 return IncludeLoc; in getIncludeLoc()
887 SourceLocation IncludeLoc = SourceLocation());
896 SourceLocation IncludeLoc = SourceLocation());
/llvm-project-15.0.7/mlir/lib/Tools/lsp-server-support/
H A DSourceMgrUtils.cpp86 SMLoc includeLoc = sourceMgr.getBufferInfo(i + 1).IncludeLoc; in gatherIncludeFiles()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DPreamble.cpp752 auto IncludeLoc = SM.getIncludeLoc(DefFile); in translatePreamblePatchLocation() local
754 if (IncludeLoc.isValid() && SM.isWrittenInBuiltinFile(IncludeLoc) && in translatePreamblePatchLocation()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaAttr.cpp436 SourceLocation IncludeLoc) { in DiagnoseNonDefaultPragmaAlignPack() argument
464 Diag(IncludeLoc, diag::warn_pragma_pack_non_default_at_include); in DiagnoseNonDefaultPragmaAlignPack()
469 Diag(IncludeLoc, diag::warn_pragma_pack_modified_after_include); in DiagnoseNonDefaultPragmaAlignPack()
H A DSema.cpp149 SourceLocation IncludeLoc = SM.getIncludeLoc(SM.getFileID(Loc)); in FileChanged() local
150 if (IncludeLoc.isValid()) { in FileChanged()
157 IncludeStack.push_back(IncludeLoc); in FileChanged()
160 IncludeLoc); in FileChanged()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReader.cpp1563 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1564 if (IncludeLoc.isInvalid() && F->Kind != MK_MainFile) { in ReadSLocEntry()
1566 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1570 FileID FID = SourceMgr.createFileID(*File, IncludeLoc, FileCharacter, ID, in ReadSLocEntry()
1605 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1606 if (IncludeLoc.isInvalid() && F->isModule()) { in ReadSLocEntry()
1607 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1614 BaseOffset + Offset, IncludeLoc); in ReadSLocEntry()
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DAsmParser.cpp5090 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude() local
5099 check(enterIncludeFile(Filename), IncludeLoc, in parseDirectiveInclude()
H A DMasmParser.cpp6134 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude() local
6143 check(enterIncludeFile(Filename), IncludeLoc, in parseDirectiveInclude()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h10275 SourceLocation IncludeLoc);