Searched defs:ExpansionInfo (Results 1 - 3 of 3) sorted by relevance

/external/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp62 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); local
64 StringRef ExpansionBuffer = SM.getBufferData(ExpansionInfo.first);
65 return ExpansionBuffer.substr(ExpansionInfo.second, MacroTokenLength);
/external/clang/include/clang/Basic/
H A DSourceManager.h292 /// \brief Each ExpansionInfo encodes the expansion location - where
295 class ExpansionInfo { class in namespace:clang::SrcMgr
342 /// \brief Return a ExpansionInfo for an expansion.
348 static ExpansionInfo create(SourceLocation SpellingLoc,
350 ExpansionInfo X;
357 /// \brief Return a special ExpansionInfo for the expansion of
376 static ExpansionInfo createForMacroArg(SourceLocation SpellingLoc,
385 /// \brief This is a discriminated union of FileInfo and ExpansionInfo.
393 ExpansionInfo Expansion;
406 const ExpansionInfo
[all...]
/external/clang/lib/Lex/
H A DLexer.cpp979 const SrcMgr::ExpansionInfo &Expansion = E->getExpansion();
1011 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); local
1013 StringRef ExpansionBuffer = SM.getBufferData(ExpansionInfo.first);
1014 return ExpansionBuffer.substr(ExpansionInfo.second, MacroTokenLength);

Completed in 462 milliseconds