clang API Documentation
#include <Parser.h>


Public Member Functions | |
| PrettyStackTraceParserEntry (const Parser &p) | |
| virtual void | print (raw_ostream &OS) const |
PrettyStackTraceParserEntry - If a crash happens while the parser is active, an entry is printed for it.
| clang::PrettyStackTraceParserEntry::PrettyStackTraceParserEntry | ( | const Parser & | p | ) | [inline] |
| void PrettyStackTraceParserEntry::print | ( | raw_ostream & | OS | ) | const [virtual] |
If a crash happens while the parser is active, print out a line indicating what the current token is.
Definition at line 83 of file Parser.cpp.
References clang::Parser::getCurToken(), clang::Token::getLocation(), clang::Parser::getPreprocessor(), clang::Preprocessor::getSourceManager(), clang::Preprocessor::getSpelling(), clang::Token::is(), clang::Token::isAnnotation(), clang::SourceLocation::isInvalid(), and clang::SourceLocation::print().