15 #ifndef LLVM_CLANG_ASTMATCHERS_DYNAMIC_DIAGNOSTICS_H 16 #define LLVM_CLANG_ASTMATCHERS_DYNAMIC_DIAGNOSTICS_H 20 #include "llvm/ADT/ArrayRef.h" 21 #include "llvm/ADT/StringRef.h" 22 #include "llvm/ADT/Twine.h" 23 #include "llvm/Support/raw_ostream.h" 56 CT_MatcherConstruct = 1
63 ET_RegistryMatcherNotFound = 1,
64 ET_RegistryWrongArgCount = 2,
65 ET_RegistryWrongArgType = 3,
66 ET_RegistryNotBindable = 4,
67 ET_RegistryAmbiguousOverload = 5,
68 ET_RegistryValueNotFound = 6,
70 ET_ParserStringError = 100,
71 ET_ParserNoOpenParen = 101,
72 ET_ParserNoCloseParen = 102,
73 ET_ParserNoComma = 103,
74 ET_ParserNoCode = 104,
75 ET_ParserNotAMatcher = 105,
76 ET_ParserInvalidToken = 106,
77 ET_ParserMalformedBindExpr = 107,
78 ET_ParserTrailingCode = 108,
79 ET_ParserNumberError = 109,
80 ET_ParserOverloadedType = 110
86 ArgStream(std::vector<std::string> *Out) : Out(Out) {}
93 std::vector<std::string> *Out;
164 void printToStream(llvm::raw_ostream &OS)
const;
170 void printToStreamFull(llvm::raw_ostream &OS)
const;
171 std::string toStringFull()
const;
177 std::vector<ContextFrame> ContextStack;
178 std::vector<ErrorContent> Errors;
185 #endif // LLVM_CLANG_AST_MATCHERS_DYNAMIC_DIAGNOSTICS_H
The base class of the type hierarchy.
std::vector< std::string > Args
MatcherArgEnum
About to recurse into parsing one argument for a matcher.
ContextType
Parser context types.
ConstructMatcherEnum
About to call the constructor for a matcher.
std::vector< Message > Messages
ArrayRef< ErrorContent > errors() const
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
Class defining a parser context.
A VariantValue instance annotated with its parser context.
ArgStream(std::vector< std::string > *Out)
const FunctionProtoType * T
static llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const std::set< ASTNodeKind > &KS)
Helper class to manage error messages.
Dataflow Directional Tag Classes.
ErrorType
All errors from the system.
ArgStream & operator<<(const T &Arg)
std::string toString(const til::SExpr *E)
std::vector< ContextFrame > ContextStack
Context for overloaded matcher construction.
Information stored for each error found.
std::vector< std::string > Args
Information stored for one frame of the context.