13#ifndef LLVM_CLANG_AST_COMMENTPARSER_H
14#define LLVM_CLANG_AST_COMMENTPARSER_H
20#include "llvm/Support/Allocator.h"
31 void operator=(
const Parser &) =
delete;
40 llvm::BumpPtrAllocator &Allocator;
61 if (MoreLATokens.empty())
64 Tok = MoreLATokens.pop_back_val();
67 void putBack(
const Token &OldTok) {
68 MoreLATokens.push_back(Tok);
72 void putBack(ArrayRef<Token> Toks) {
76 MoreLATokens.push_back(Tok);
77 MoreLATokens.append(Toks.rbegin(), std::prev(Toks.rend()));
82 bool isTokBlockCommand() {
88 Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator,
89 const SourceManager &SourceMgr, DiagnosticsEngine &Diags,
90 const CommandTraits &Traits);
100 ArrayRef<Comment::Argument>
105 ArrayRef<Comment::Argument>
108 ArrayRef<Comment::Argument>
Defines the Diagnostic-related interfaces.
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.
A little helper class used to produce diagnostics.
Concrete class used by the front-end to report problems and issues.
DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID)
Issue the message to the client.
Encodes a location in the source.
This class handles loading and caching of source files into memory.
Token - This structure provides full information about a lexed token.
The JSON file list parser is used to communicate input to InstallAPI.