Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h76 SMLoc IncludeLoc; member
140 return Buffers[i - 1].IncludeLoc; in getParentIncludeLoc()
146 SMLoc IncludeLoc) { in AddNewSourceBuffer() argument
149 NB.IncludeLoc = IncludeLoc; in AddNewSourceBuffer()
167 Buffers[OldNumBuffers].IncludeLoc = MainBufferIncludeLoc;
177 SMLoc IncludeLoc, std::string &IncludedFile);
253 LLVM_ABI 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.cpp445 StringRef FileName, SourceLocation IncludeLoc, const DirectoryEntry *Dir, in getFileAndSuggestModule() argument
459 Diags.Report(IncludeLoc, diag::err_cannot_open_file) in getFileAndSuggestModule()
477 StringRef &Filename, HeaderSearch &HS, SourceLocation IncludeLoc, in LookupFile() argument
503 TmpDir, IncludeLoc, getDir(), isSystemHeaderDirectory(), in LookupFile()
557 HS.noteLookupUsage(HS.searchDirIdx(*this), IncludeLoc); in LookupFile()
789 SourceLocation IncludeLoc) { in checkMSVCHeaderSearch() argument
791 Diags.Report(IncludeLoc, diag::ext_pp_include_search_ms) << MSFE->getName(); in checkMSVCHeaderSearch()
847 diagnoseFrameworkInclude(DiagnosticsEngine &Diags, SourceLocation IncludeLoc, in diagnoseFrameworkInclude() argument
871 Diags.Report(IncludeLoc, diag::warn_quoted_include_in_framework_header) in diagnoseFrameworkInclude()
873 << FixItHint::CreateReplacement(IncludeLoc, NewInclude); in diagnoseFrameworkInclude()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp164 FullSourceLoc IncludeLoc = in emitIncludeStack() local
169 if (LastIncludeLoc == IncludeLoc) in emitIncludeStack()
172 LastIncludeLoc = IncludeLoc; in emitIncludeStack()
177 if (IncludeLoc.isValid()) in emitIncludeStack()
178 emitIncludeStackRecursively(IncludeLoc); in emitIncludeStack()
H A DPrintPreprocessedOutput.cpp359 SourceLocation IncludeLoc = UserLoc.getIncludeLoc(); in FileChanged() local
360 if (IncludeLoc.isValid()) in FileChanged()
361 MoveToLine(IncludeLoc, /*RequireStartOfLine=*/false); in FileChanged()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DHeaderSearch.h508 StringRef Filename, SourceLocation IncludeLoc, bool isAngled,
813 getFileAndSuggestModule(StringRef FileName, SourceLocation IncludeLoc,
823 SourceLocation IncludeLoc);
827 void noteLookupUsage(unsigned HitIdx, SourceLocation IncludeLoc);
H A DDirectoryLookup.h178 LookupFile(StringRef &Filename, HeaderSearch &HS, SourceLocation IncludeLoc,
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp563 SourceLocation IncludeLoc) { in createFileID() argument
566 IncludeLoc, FileCharacter, LoadedID, LoadedOffset); in createFileID()
577 SourceLocation IncludeLoc) { in createFileID() argument
579 LoadedID, LoadedOffset, IncludeLoc); in createFileID()
1508 SourceLocation IncludeLoc = FI.getIncludeLoc(); in getPresumedLoc() local
1536 IncludeLoc = getLocForStartOfFile(LocInfo.first); in getPresumedLoc()
1537 IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset); in getPresumedLoc()
1542 return PresumedLoc(Filename.data(), FID, LineNo, ColNo, IncludeLoc); in getPresumedLoc()
1745 SourceLocation IncludeLoc = File.getIncludeLoc(); in computeMacroArgsCache() local
1747 (IncludeLoc.isValid() && isInFileID(IncludeLoc, FID)) || in computeMacroArgsCache()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h311 SourceLocation IncludeLoc;
317 : Filename(FN), ID(FID), Line(Ln), Col(Co), IncludeLoc(IL) {}
360 return IncludeLoc;
H A DSourceManager.h303 SourceLocation IncludeLoc; variable
324 X.IncludeLoc = IL; in get()
334 return IncludeLoc; in getIncludeLoc()
931 SourceLocation IncludeLoc = SourceLocation());
940 SourceLocation IncludeLoc = SourceLocation());
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAttr.cpp551 SourceLocation IncludeLoc) { in DiagnoseNonDefaultPragmaAlignPack() argument
579 Diag(IncludeLoc, diag::warn_pragma_pack_non_default_at_include); in DiagnoseNonDefaultPragmaAlignPack()
584 Diag(IncludeLoc, diag::warn_pragma_pack_modified_after_include); in DiagnoseNonDefaultPragmaAlignPack()
H A DSema.cpp198 SourceLocation IncludeLoc = SM.getIncludeLoc(SM.getFileID(Loc)); in FileChanged() local
199 if (IncludeLoc.isValid()) { in FileChanged()
206 IncludeStack.push_back(IncludeLoc); in FileChanged()
209 IncludeLoc); in FileChanged()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParser.cpp80 [this](StringRef TypeStr, StringRef Context, SourceLocation IncludeLoc) { in Parser() argument
81 return this->ParseTypeFromString(TypeStr, Context, IncludeLoc); in Parser()
H A DParseDecl.cpp8099 SourceLocation IncludeLoc) { in ParseTypeFromString() argument
8107 0, 0, IncludeLoc); in ParseTypeFromString()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp1864 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1865 if (IncludeLoc.isInvalid() && F->Kind != MK_MainFile) { in ReadSLocEntry()
1867 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1871 FileID FID = SourceMgr.createFileID(*File, IncludeLoc, FileCharacter, ID, in ReadSLocEntry()
1905 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1906 if (IncludeLoc.isInvalid() && F->isModule()) { in ReadSLocEntry()
1907 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1914 BaseOffset + Offset, IncludeLoc); in ReadSLocEntry()
H A DASTWriter.cpp1798 SourceLocation IncludeLoc = File.getIncludeLoc(); in getAffectingIncludeLoc() local
1799 if (IncludeLoc.isValid()) { in getAffectingIncludeLoc()
1800 FileID IncludeFID = SourceMgr.getFileID(IncludeLoc); in getAffectingIncludeLoc()
1803 IncludeLoc = SourceLocation(); in getAffectingIncludeLoc()
1805 return IncludeLoc; in getAffectingIncludeLoc()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmParser.cpp5054 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude() local
5063 check(enterIncludeFile(Filename), IncludeLoc, in parseDirectiveInclude()
H A DMasmParser.cpp4656 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude() local
4665 check(enterIncludeFile(Filename), IncludeLoc, in parseDirectiveInclude()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h2814 SourceLocation IncludeLoc);
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h2179 SourceLocation IncludeLoc);