Reset AST node IDs between compilation runs.

This commit is contained in:
chriseth
2017-01-20 12:00:16 +01:00
parent da178d967f
commit 7159944f0f
5 changed files with 28 additions and 5 deletions
+2
View File
@@ -59,6 +59,8 @@ public:
/// @returns an identifier of this AST node that is unique for a single compilation run.
size_t id() const { return m_id; }
/// Resets the global ID counter. This invalidates all previous IDs.
static void resetID();
virtual void accept(ASTVisitor& _visitor) = 0;
virtual void accept(ASTConstVisitor& _visitor) const = 0;