Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/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;
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp42 SMLoc IncludeLoc, in AddIncludeFile() argument
49 return AddNewSourceBuffer(std::move(*NewBufOrErr), IncludeLoc); in AddIncludeFile()
172 IncludeLoc(Other.IncludeLoc) { in SrcBuffer()
261 void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const { in PrintIncludeStack() argument
262 if (IncludeLoc == SMLoc()) in PrintIncludeStack()
265 unsigned CurBuf = FindBufferContainingLoc(IncludeLoc); in PrintIncludeStack()
268 PrintIncludeStack(getBufferInfo(CurBuf).IncludeLoc, OS); in PrintIncludeStack()
271 << ":" << FindLineNumber(IncludeLoc, CurBuf) << ":\n"; in PrintIncludeStack()
346 PrintIncludeStack(getBufferInfo(CurBuf).IncludeLoc, OS); in PrintMessage()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DHeaderSearch.cpp440 StringRef FileName, SourceLocation IncludeLoc, const DirectoryEntry *Dir, in getFileAndSuggestModule() argument
454 Diags.Report(IncludeLoc, diag::err_cannot_open_file) in getFileAndSuggestModule()
472 StringRef &Filename, HeaderSearch &HS, SourceLocation IncludeLoc, in LookupFile() argument
498 TmpDir, IncludeLoc, getDir(), isSystemHeaderDirectory(), in LookupFile()
552 HS.noteLookupUsage(HS.searchDirIdx(*this), IncludeLoc); in LookupFile()
784 SourceLocation IncludeLoc) { in checkMSVCHeaderSearch() argument
786 Diags.Report(IncludeLoc, diag::ext_pp_include_search_ms) << MSFE->getName(); in checkMSVCHeaderSearch()
842 diagnoseFrameworkInclude(DiagnosticsEngine &Diags, SourceLocation IncludeLoc, in diagnoseFrameworkInclude() argument
866 Diags.Report(IncludeLoc, diag::warn_quoted_include_in_framework_header) in diagnoseFrameworkInclude()
868 << FixItHint::CreateReplacement(IncludeLoc, NewInclude); in diagnoseFrameworkInclude()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp166 FullSourceLoc IncludeLoc = in emitIncludeStack() local
171 if (LastIncludeLoc == IncludeLoc) in emitIncludeStack()
174 LastIncludeLoc = IncludeLoc; in emitIncludeStack()
179 if (IncludeLoc.isValid()) in emitIncludeStack()
180 emitIncludeStackRecursively(IncludeLoc); in emitIncludeStack()
H A DPrintPreprocessedOutput.cpp360 SourceLocation IncludeLoc = UserLoc.getIncludeLoc(); in FileChanged() local
361 if (IncludeLoc.isValid()) in FileChanged()
362 MoveToLine(IncludeLoc, /*RequireStartOfLine=*/false); in FileChanged()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DHeaderSearch.h511 StringRef Filename, SourceLocation IncludeLoc, bool isAngled,
815 getFileAndSuggestModule(StringRef FileName, SourceLocation IncludeLoc,
825 SourceLocation IncludeLoc);
829 void noteLookupUsage(unsigned HitIdx, SourceLocation IncludeLoc);
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h309 SourceLocation IncludeLoc;
315 : Filename(FN), ID(FID), Line(Ln), Col(Co), IncludeLoc(IL) {}
358 return IncludeLoc;
H A DSourceManager.h303 SourceLocation IncludeLoc; variable
324 X.IncludeLoc = IL; in get()
334 return IncludeLoc; in getIncludeLoc()
927 SourceLocation IncludeLoc = SourceLocation());
936 SourceLocation IncludeLoc = SourceLocation());
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp571 SourceLocation IncludeLoc) { in createFileID() argument
574 IncludeLoc, FileCharacter, LoadedID, LoadedOffset); in createFileID()
585 SourceLocation IncludeLoc) { in createFileID() argument
587 LoadedID, LoadedOffset, IncludeLoc); in createFileID()
1503 SourceLocation IncludeLoc = FI.getIncludeLoc(); in getPresumedLoc() local
1531 IncludeLoc = getLocForStartOfFile(LocInfo.first); in getPresumedLoc()
1532 IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset); in getPresumedLoc()
1537 return PresumedLoc(Filename.data(), FID, LineNo, ColNo, IncludeLoc); in getPresumedLoc()
1740 SourceLocation IncludeLoc = File.getIncludeLoc(); in computeMacroArgsCache() local
1742 (IncludeLoc.isValid() && isInFileID(IncludeLoc, FID)) || in computeMacroArgsCache()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAttr.cpp450 SourceLocation IncludeLoc) { in DiagnoseNonDefaultPragmaAlignPack() argument
478 Diag(IncludeLoc, diag::warn_pragma_pack_non_default_at_include); in DiagnoseNonDefaultPragmaAlignPack()
483 Diag(IncludeLoc, diag::warn_pragma_pack_modified_after_include); in DiagnoseNonDefaultPragmaAlignPack()
H A DSema.cpp177 SourceLocation IncludeLoc = SM.getIncludeLoc(SM.getFileID(Loc)); in FileChanged() local
178 if (IncludeLoc.isValid()) { in FileChanged()
185 IncludeStack.push_back(IncludeLoc); in FileChanged()
188 IncludeLoc); in FileChanged()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParser.cpp76 [this](StringRef TypeStr, StringRef Context, SourceLocation IncludeLoc) { in Parser() argument
77 return this->ParseTypeFromString(TypeStr, Context, IncludeLoc); in Parser()
H A DParseDecl.cpp8507 SourceLocation IncludeLoc) { in ParseTypeFromString() argument
8515 0, 0, IncludeLoc); in ParseTypeFromString()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp1686 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1687 if (IncludeLoc.isInvalid() && F->Kind != MK_MainFile) { in ReadSLocEntry()
1689 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1693 FileID FID = SourceMgr.createFileID(*File, IncludeLoc, FileCharacter, ID, in ReadSLocEntry()
1727 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1728 if (IncludeLoc.isInvalid() && F->isModule()) { in ReadSLocEntry()
1729 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1736 BaseOffset + Offset, IncludeLoc); in ReadSLocEntry()
H A DASTWriter.cpp1713 SourceLocation IncludeLoc = File.getIncludeLoc(); in getAffectingIncludeLoc() local
1714 if (IncludeLoc.isValid()) { in getAffectingIncludeLoc()
1715 FileID IncludeFID = SourceMgr.getFileID(IncludeLoc); in getAffectingIncludeLoc()
1718 IncludeLoc = SourceLocation(); in getAffectingIncludeLoc()
1720 return IncludeLoc; in getAffectingIncludeLoc()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmParser.cpp5116 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude() local
5125 check(enterIncludeFile(Filename), IncludeLoc, in parseDirectiveInclude()
H A DMasmParser.cpp6119 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude() local
6128 check(enterIncludeFile(Filename), IncludeLoc, in parseDirectiveInclude()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h3862 SourceLocation IncludeLoc);
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h1872 SourceLocation IncludeLoc);