Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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;
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DHeaderSearch.cpp419 StringRef FileName, SourceLocation IncludeLoc, const DirectoryEntry *Dir, in getFileAndSuggestModule() argument
433 Diags.Report(IncludeLoc, diag::err_cannot_open_file) in getFileAndSuggestModule()
451 StringRef &Filename, HeaderSearch &HS, SourceLocation IncludeLoc, in LookupFile() argument
477 TmpDir, IncludeLoc, getDir(), isSystemHeaderDirectory(), in LookupFile()
525 HS.noteLookupUsage(HS.searchDirIdx(*this), IncludeLoc); in LookupFile()
757 SourceLocation IncludeLoc) { in checkMSVCHeaderSearch() argument
759 Diags.Report(IncludeLoc, diag::ext_pp_include_search_ms) << MSFE->getName(); in checkMSVCHeaderSearch()
815 diagnoseFrameworkInclude(DiagnosticsEngine &Diags, SourceLocation IncludeLoc, in diagnoseFrameworkInclude() argument
839 Diags.Report(IncludeLoc, diag::warn_quoted_include_in_framework_header) in diagnoseFrameworkInclude()
841 << FixItHint::CreateReplacement(IncludeLoc, NewInclude); in diagnoseFrameworkInclude()
[all …]
/openbsd-src/gnu/llvm/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.cpp339 SourceLocation IncludeLoc = UserLoc.getIncludeLoc(); in FileChanged() local
340 if (IncludeLoc.isValid()) in FileChanged()
341 MoveToLine(IncludeLoc, /*RequireStartOfLine=*/false); in FileChanged()
/openbsd-src/gnu/llvm/clang/include/clang/Lex/
H A DHeaderSearch.h483 StringRef Filename, SourceLocation IncludeLoc, bool isAngled,
773 getFileAndSuggestModule(StringRef FileName, SourceLocation IncludeLoc,
783 SourceLocation IncludeLoc);
787 void noteLookupUsage(unsigned HitIdx, SourceLocation IncludeLoc);
H A DDirectoryLookup.h184 LookupFile(StringRef &Filename, HeaderSearch &HS, SourceLocation IncludeLoc,
/openbsd-src/gnu/llvm/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.h298 SourceLocation IncludeLoc; variable
318 X.IncludeLoc = IL; in get()
328 return IncludeLoc; in getIncludeLoc()
898 SourceLocation IncludeLoc = SourceLocation());
907 SourceLocation IncludeLoc = SourceLocation());
/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DSourceManager.cpp567 SourceLocation IncludeLoc) { in createFileID() argument
570 IncludeLoc, FileCharacter, LoadedID, LoadedOffset); in createFileID()
581 SourceLocation IncludeLoc) { in createFileID() argument
583 LoadedID, LoadedOffset, IncludeLoc); in createFileID()
1554 SourceLocation IncludeLoc = FI.getIncludeLoc(); in getPresumedLoc() local
1582 IncludeLoc = getLocForStartOfFile(LocInfo.first); in getPresumedLoc()
1583 IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset); in getPresumedLoc()
1588 return PresumedLoc(Filename.data(), FID, LineNo, ColNo, IncludeLoc); in getPresumedLoc()
1791 SourceLocation IncludeLoc = File.getIncludeLoc(); in computeMacroArgsCache() local
1793 (IncludeLoc.isValid() && isInFileID(IncludeLoc, FID)) || in computeMacroArgsCache()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaAttr.cpp439 SourceLocation IncludeLoc) { in DiagnoseNonDefaultPragmaAlignPack() argument
467 Diag(IncludeLoc, diag::warn_pragma_pack_non_default_at_include); in DiagnoseNonDefaultPragmaAlignPack()
472 Diag(IncludeLoc, diag::warn_pragma_pack_modified_after_include); in DiagnoseNonDefaultPragmaAlignPack()
H A DSema.cpp151 SourceLocation IncludeLoc = SM.getIncludeLoc(SM.getFileID(Loc)); in FileChanged() local
152 if (IncludeLoc.isValid()) { in FileChanged()
159 IncludeStack.push_back(IncludeLoc); in FileChanged()
162 IncludeLoc); in FileChanged()
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTReader.cpp1532 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1533 if (IncludeLoc.isInvalid() && F->Kind != MK_MainFile) { in ReadSLocEntry()
1535 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1539 FileID FID = SourceMgr.createFileID(*File, IncludeLoc, FileCharacter, ID, in ReadSLocEntry()
1574 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1575 if (IncludeLoc.isInvalid() && F->isModule()) { in ReadSLocEntry()
1576 IncludeLoc = getImportLocation(F); in ReadSLocEntry()
1583 BaseOffset + Offset, IncludeLoc); in ReadSLocEntry()
/openbsd-src/gnu/llvm/llvm/lib/MC/MCParser/
H A DAsmParser.cpp5091 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude() local
5100 check(enterIncludeFile(Filename), IncludeLoc, in parseDirectiveInclude()
H A DMasmParser.cpp6150 SMLoc IncludeLoc = getTok().getLoc(); in parseDirectiveInclude() local
6159 check(enterIncludeFile(Filename), IncludeLoc, in parseDirectiveInclude()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h10599 SourceLocation IncludeLoc);