Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
static StringRef getSourceText(CharSourceRange Range, const SourceManager &SM, const LangOptions &LangOpts, bool *Invalid=nullptr)
Returns a string for the source that the range encompasses.
static Optional< Token > findNextToken(SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts)
Finds the token that comes right after the given location.
SourceManager & getSourceManager()
const LangOptions & getLangOpts() const