forked from qt-creator/qt-creator
Refactored the AST visitors.
Now, the ASTVisitor constructor takes a valid reference to a TranslationUnit.
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
|
||||
using namespace CPlusPlus;
|
||||
|
||||
ASTParent::ASTParent(Control *control, AST *rootNode)
|
||||
: ASTVisitor(control)
|
||||
ASTParent::ASTParent(TranslationUnit *translationUnit, AST *rootNode)
|
||||
: ASTVisitor(translationUnit)
|
||||
{
|
||||
accept(rootNode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user