Lines Matching full:diagnostics
1 //===--- Diagnostics.cpp - Helper class for error diagnostics ---*- C++ -*-===//
9 #include "clang/ASTMatchers/Dynamic/Diagnostics.h"
14 Diagnostics::ArgStream Diagnostics::pushContextFrame(ContextType Type, in pushContextFrame()
23 Diagnostics::Context::Context(ConstructMatcherEnum, Diagnostics *Error, in Context()
30 Diagnostics::Context::Context(MatcherArgEnum, Diagnostics *Error, in Context()
39 Diagnostics::Context::~Context() { Error->ContextStack.pop_back(); } in ~Context()
41 Diagnostics::OverloadContext::OverloadContext(Diagnostics *Error) in OverloadContext()
44 Diagnostics::OverloadContext::~OverloadContext() { in ~OverloadContext()
47 Diagnostics::ErrorContent &Dest = Error->Errors[BeginIndex]; in ~OverloadContext()
55 void Diagnostics::OverloadContext::revertErrors() { in revertErrors()
60 Diagnostics::ArgStream &Diagnostics::ArgStream::operator<<(const Twine &Arg) { in operator <<()
65 Diagnostics::ArgStream Diagnostics::addError(SourceRange Range, in addError()
76 static StringRef contextTypeToFormatString(Diagnostics::ContextType Type) { in contextTypeToFormatString()
78 case Diagnostics::CT_MatcherConstruct: in contextTypeToFormatString()
80 case Diagnostics::CT_MatcherArg: in contextTypeToFormatString()
86 static StringRef errorTypeToFormatString(Diagnostics::ErrorType Type) { in errorTypeToFormatString()
88 case Diagnostics::ET_RegistryMatcherNotFound: in errorTypeToFormatString()
90 case Diagnostics::ET_RegistryWrongArgCount: in errorTypeToFormatString()
92 case Diagnostics::ET_RegistryWrongArgType: in errorTypeToFormatString()
94 case Diagnostics::ET_RegistryNotBindable: in errorTypeToFormatString()
96 case Diagnostics::ET_RegistryAmbiguousOverload: in errorTypeToFormatString()
99 case Diagnostics::ET_RegistryValueNotFound: in errorTypeToFormatString()
101 case Diagnostics::ET_RegistryUnknownEnumWithReplace: in errorTypeToFormatString()
104 case Diagnostics::ET_ParserStringError: in errorTypeToFormatString()
106 case Diagnostics::ET_ParserNoOpenParen: in errorTypeToFormatString()
108 case Diagnostics::ET_ParserNoCloseParen: in errorTypeToFormatString()
110 case Diagnostics::ET_ParserNoComma: in errorTypeToFormatString()
112 case Diagnostics::ET_ParserNoCode: in errorTypeToFormatString()
114 case Diagnostics::ET_ParserNotAMatcher: in errorTypeToFormatString()
116 case Diagnostics::ET_ParserInvalidToken: in errorTypeToFormatString()
118 case Diagnostics::ET_ParserMalformedBindExpr: in errorTypeToFormatString()
120 case Diagnostics::ET_ParserTrailingCode: in errorTypeToFormatString()
122 case Diagnostics::ET_ParserNumberError: in errorTypeToFormatString()
124 case Diagnostics::ET_ParserOverloadedType: in errorTypeToFormatString()
127 case Diagnostics::ET_None: in errorTypeToFormatString()
161 static void printContextFrameToStream(const Diagnostics::ContextFrame &Frame, in printContextFrameToStream()
168 printMessageToStream(const Diagnostics::ErrorContent::Message &Message, in printMessageToStream()
175 static void printErrorContentToStream(const Diagnostics::ErrorContent &Content, in printErrorContentToStream()
188 void Diagnostics::printToStream(llvm::raw_ostream &OS) const { in printToStream()
195 std::string Diagnostics::toString() const { in toString()
202 void Diagnostics::printToStreamFull(llvm::raw_ostream &OS) const { in printToStreamFull()
214 std::string Diagnostics::toStringFull() const { in toStringFull()