forked from qt-creator/qt-creator
Rewrote PrettyPrinter to output the document exactly as it was before
This means at the moment the PrettyPrinter isn't doing anything useful, but the idea is that from here we can improve it to adapt the code to a certain style. Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -69,6 +69,9 @@ Control *ASTVisitor::control() const
|
||||
TranslationUnit *ASTVisitor::translationUnit() const
|
||||
{ return _control->translationUnit(); }
|
||||
|
||||
unsigned ASTVisitor::tokenCount() const
|
||||
{ return translationUnit()->tokenCount(); }
|
||||
|
||||
const Token &ASTVisitor::tokenAt(unsigned index) const
|
||||
{ return translationUnit()->tokenAt(index); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user