14 #ifndef LLVM_CLANG_AST_COMMENTSEMA_H
15 #define LLVM_CLANG_AST_COMMENTSEMA_H
20 #include "llvm/ADT/ArrayRef.h"
21 #include "llvm/ADT/StringMap.h"
22 #include "llvm/ADT/StringRef.h"
23 #include "llvm/Support/Allocator.h"
35 void operator=(
const Sema &) =
delete;
38 llvm::BumpPtrAllocator &Allocator;
56 llvm::StringMap<TParamCommandComment *> TemplateParameterDocs;
65 return Diags.
Report(Loc, DiagID);
82 size_t Size = Source.size();
84 T *Mem = Allocator.Allocate<T>(Size);
85 std::uninitialized_copy(Source.begin(), Source.end(), Mem);
86 return llvm::makeArrayRef(Mem, Size);
149 StringRef CommandName);
DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID)
Issue the message to the client.
Stores a list of template parameters for a TemplateDecl and its derived classes.
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.
Defines the clang::SourceLocation class and associated facilities.
This class handles loading and caching of source files into memory.
Engages in a tight little dance with the lexer to efficiently preprocess tokens.