Warn if this is used in constructor

This commit is contained in:
Alex Beregszaszi
2017-07-19 06:47:36 -07:00
committed by Rhett Aultman
parent 84f8e7a467
commit b3db1c361c
2 changed files with 15 additions and 0 deletions
+6
View File
@@ -77,6 +77,12 @@ private:
std::map<VariableDeclaration const*, int> m_localVarUseCount;
FunctionDefinition const* m_currentFunction = nullptr;
/// Flag that indicates a constructor.
bool m_constructor = false;
/// Current contract.
ContractDefinition const* m_currentContract = nullptr;
};
}