Searched refs:IncludeLoc (Results 1 - 12 of 12) sorted by relevance

/external/llvm/include/llvm/Support/
H A DSourceMgr.h53 SMLoc IncludeLoc; member in struct:llvm::SourceMgr::SrcBuffer
113 return Buffers[i - 1].IncludeLoc;
118 unsigned AddNewSourceBuffer(MemoryBuffer *F, SMLoc IncludeLoc) { argument
121 NB.IncludeLoc = IncludeLoc;
132 unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc,
187 /// \param IncludeLoc The location of the include.
189 void PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const;
/external/llvm/lib/Support/
H A DSourceMgr.cpp53 SMLoc IncludeLoc,
70 return AddNewSourceBuffer(NewBufOrErr.get().release(), IncludeLoc);
128 void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const { argument
129 if (IncludeLoc == SMLoc()) return; // Top of stack.
131 unsigned CurBuf = FindBufferContainingLoc(IncludeLoc);
134 PrintIncludeStack(getBufferInfo(CurBuf).IncludeLoc, OS);
138 << ":" << FindLineNumber(IncludeLoc, CurBuf) << ":\n";
216 PrintIncludeStack(getBufferInfo(CurBuf).IncludeLoc, OS);
52 AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc, std::string &IncludedFile) argument
/external/clang/include/clang/Basic/
H A DSourceLocation.h359 SourceLocation IncludeLoc; member in class:clang::SourceLocation::PresumedLoc
363 : Filename(FN), Line(Ln), Col(Co), IncludeLoc(IL) {
391 SourceLocation getIncludeLoc() const { return IncludeLoc; }
H A DSourceManager.h247 /// expanded from. The main include file has an invalid IncludeLoc.
255 unsigned IncludeLoc; // Really a SourceLocation member in class:clang::SrcMgr::FileInfo
276 X.IncludeLoc = IL.getRawEncoding();
286 return SourceLocation::getFromRawEncoding(IncludeLoc);
794 SourceLocation IncludeLoc = SourceLocation()) {
795 return createFileID(createMemBufferContentCache(Buffer), IncludeLoc,
/external/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp214 SourceLocation IncludeLoc = PLoc.getIncludeLoc(); local
217 if (LastIncludeLoc == IncludeLoc)
220 LastIncludeLoc = IncludeLoc;
225 if (IncludeLoc.isValid())
226 emitIncludeStackRecursively(IncludeLoc, SM);
H A DPrintPreprocessedOutput.cpp267 SourceLocation IncludeLoc = UserLoc.getIncludeLoc(); local
268 if (IncludeLoc.isValid())
269 MoveToLine(IncludeLoc);
/external/clang/lib/Lex/
H A DHeaderSearch.cpp543 SourceLocation IncludeLoc) {
545 Diags.Report(IncludeLoc, diag::ext_pp_include_search_ms) << MSFE->getName();
565 StringRef Filename, SourceLocation IncludeLoc, bool isAngled,
669 if (Diags.isIgnored(diag::ext_pp_include_search_ms, IncludeLoc)) {
764 if (checkMSVCHeaderSearch(Diags, MSFE, FE, IncludeLoc)) {
789 ScratchFilename, IncludeLoc, /*isAngled=*/true, FromDir, CurDir,
792 if (checkMSVCHeaderSearch(Diags, MSFE, FE, IncludeLoc)) {
807 if (checkMSVCHeaderSearch(Diags, MSFE, nullptr, IncludeLoc)) {
541 checkMSVCHeaderSearch(DiagnosticsEngine &Diags, const FileEntry *MSFE, const FileEntry *FE, SourceLocation IncludeLoc) argument
564 LookupFile( StringRef Filename, SourceLocation IncludeLoc, bool isAngled, const DirectoryLookup *FromDir, const DirectoryLookup *&CurDir, ArrayRef<const FileEntry *> Includers, SmallVectorImpl<char> *SearchPath, SmallVectorImpl<char> *RelativePath, ModuleMap::KnownHeader *SuggestedModule, bool SkipCache) argument
H A DModuleMap.cpp885 SourceLocation IncludeLoc = SrcMgr.getIncludeLoc(ExpansionFileID);
886 if (IncludeLoc.isInvalid())
889 ExpansionFileID = SrcMgr.getFileID(IncludeLoc);
/external/clang/lib/Basic/
H A DSourceManager.cpp1481 SourceLocation IncludeLoc = FI.getIncludeLoc();
1505 IncludeLoc = getLocForStartOfFile(LocInfo.first);
1506 IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset);
1511 return PresumedLoc(Filename, LineNo, ColNo, IncludeLoc);
1808 SourceLocation IncludeLoc = Entry.getFile().getIncludeLoc(); local
1809 if (IncludeLoc.isInvalid())
1811 if (!isInFileID(IncludeLoc, FID))
/external/clang/include/clang/Lex/
H A DHeaderSearch.h366 /// \param IncludeLoc Used for diagnostics if valid.
387 const FileEntry *LookupFile(StringRef Filename, SourceLocation IncludeLoc,
/external/clang/lib/Serialization/
H A DASTReader.cpp1191 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]);
1192 if (IncludeLoc.isInvalid() && F->Kind != MK_MainFile) {
1194 IncludeLoc = getImportLocation(F);
1198 FileID FID = SourceMgr.createFileID(File, IncludeLoc, FileCharacter,
1241 SourceLocation IncludeLoc = ReadSourceLocation(*F, Record[1]); local
1242 if (IncludeLoc.isInvalid() && F->Kind == MK_Module) {
1243 IncludeLoc = getImportLocation(F);
1258 IncludeLoc);
/external/llvm/lib/MC/MCParser/
H A DAsmParser.cpp3771 SMLoc IncludeLoc = getLexer().getLoc();
3780 Error(IncludeLoc, "Could not find include file '" + Filename + "'");

Completed in 5325 milliseconds