Lines Matching full:diagnostics
1 //===--- Diagnostics.cpp - Helper class for error diagnostics -----*- C++ -*-===//
10 #include "clang/ASTMatchers/Dynamic/Diagnostics.h"
15 Diagnostics::ArgStream Diagnostics::pushContextFrame(ContextType Type, in pushContextFrame()
24 Diagnostics::Context::Context(ConstructMatcherEnum, Diagnostics *Error, in Context()
31 Diagnostics::Context::Context(MatcherArgEnum, Diagnostics *Error, in Context()
40 Diagnostics::Context::~Context() { Error->ContextStack.pop_back(); } in ~Context()
42 Diagnostics::OverloadContext::OverloadContext(Diagnostics *Error) in OverloadContext()
45 Diagnostics::OverloadContext::~OverloadContext() { in ~OverloadContext()
48 Diagnostics::ErrorContent &Dest = Error->Errors[BeginIndex]; in ~OverloadContext()
56 void Diagnostics::OverloadContext::revertErrors() { in revertErrors()
61 Diagnostics::ArgStream &Diagnostics::ArgStream::operator<<(const Twine &Arg) { in operator <<()
66 Diagnostics::ArgStream Diagnostics::addError(SourceRange Range, in addError()
77 static StringRef contextTypeToFormatString(Diagnostics::ContextType Type) { in contextTypeToFormatString()
79 case Diagnostics::CT_MatcherConstruct: in contextTypeToFormatString()
81 case Diagnostics::CT_MatcherArg: in contextTypeToFormatString()
87 static StringRef errorTypeToFormatString(Diagnostics::ErrorType Type) { in errorTypeToFormatString()
89 case Diagnostics::ET_RegistryMatcherNotFound: in errorTypeToFormatString()
91 case Diagnostics::ET_RegistryWrongArgCount: in errorTypeToFormatString()
93 case Diagnostics::ET_RegistryWrongArgType: in errorTypeToFormatString()
95 case Diagnostics::ET_RegistryNotBindable: in errorTypeToFormatString()
97 case Diagnostics::ET_RegistryAmbiguousOverload: in errorTypeToFormatString()
100 case Diagnostics::ET_RegistryValueNotFound: in errorTypeToFormatString()
103 case Diagnostics::ET_ParserStringError: in errorTypeToFormatString()
105 case Diagnostics::ET_ParserNoOpenParen: in errorTypeToFormatString()
107 case Diagnostics::ET_ParserNoCloseParen: in errorTypeToFormatString()
109 case Diagnostics::ET_ParserNoComma: in errorTypeToFormatString()
111 case Diagnostics::ET_ParserNoCode: in errorTypeToFormatString()
113 case Diagnostics::ET_ParserNotAMatcher: in errorTypeToFormatString()
115 case Diagnostics::ET_ParserInvalidToken: in errorTypeToFormatString()
117 case Diagnostics::ET_ParserMalformedBindExpr: in errorTypeToFormatString()
119 case Diagnostics::ET_ParserTrailingCode: in errorTypeToFormatString()
121 case Diagnostics::ET_ParserUnsignedError: in errorTypeToFormatString()
123 case Diagnostics::ET_ParserOverloadedType: in errorTypeToFormatString()
126 case Diagnostics::ET_None: in errorTypeToFormatString()
160 static void printContextFrameToStream(const Diagnostics::ContextFrame &Frame, in printContextFrameToStream()
167 printMessageToStream(const Diagnostics::ErrorContent::Message &Message, in printMessageToStream()
174 static void printErrorContentToStream(const Diagnostics::ErrorContent &Content, in printErrorContentToStream()
187 void Diagnostics::printToStream(llvm::raw_ostream &OS) const { in printToStream()
194 std::string Diagnostics::toString() const { in toString()
201 void Diagnostics::printToStreamFull(llvm::raw_ostream &OS) const { in printToStreamFull()
213 std::string Diagnostics::toStringFull() const { in toStringFull()