14 #ifndef LLVM_CLANG_AST_COMMENTPARSER_H
15 #define LLVM_CLANG_AST_COMMENTPARSER_H
21 #include "llvm/Support/Allocator.h"
32 void operator=(
const Parser &) =
delete;
49 return Diags.
Report(Loc, DiagID);
62 if (MoreLATokens.empty())
65 Tok = MoreLATokens.pop_back_val();
68 void putBack(
const Token &OldTok) {
69 MoreLATokens.push_back(Tok);
73 void putBack(ArrayRef<Token> Toks) {
77 MoreLATokens.push_back(Tok);
78 MoreLATokens.append(Toks.rbegin(), std::prev(Toks.rend()));
83 bool isTokBlockCommand() {
89 Parser(Lexer &L, Sema &
S, llvm::BumpPtrAllocator &
Allocator,
90 const SourceManager &
SourceMgr, DiagnosticsEngine &Diags,
91 const CommandTraits &Traits);
static DiagnosticBuilder Diag(DiagnosticsEngine *Diags, const LangOptions &Features, FullSourceLoc TokLoc, const char *TokBegin, const char *TokRangeBegin, const char *TokRangeEnd, unsigned DiagID)
Produce a diagnostic highlighting some portion of a literal.
DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID)
Issue the message to the client.
Concrete class used by the front-end to report problems and issues.
A little helper class used to produce diagnostics.
Encodes a location in the source. The SourceManager can decode this to get at the full include stack...
Defines the Diagnostic-related interfaces.
This class handles loading and caching of source files into memory.