diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-02 19:03:37 +0800 |
---|---|---|
committer | Rhett Aultman <roadriverrail@gmail.com> | 2017-07-19 21:47:36 +0800 |
commit | b3db1c361cc030aa76bec8184a59e05d192c2397 (patch) | |
tree | 1c2b6fad836f1f3ff54cdc9d3628fc0aa427d10c /libsolidity/analysis/StaticAnalyzer.h | |
parent | 84f8e7a46712f7da46ac15d378f0de0491278363 (diff) | |
download | dexon-solidity-b3db1c361cc030aa76bec8184a59e05d192c2397.tar.gz dexon-solidity-b3db1c361cc030aa76bec8184a59e05d192c2397.tar.zst dexon-solidity-b3db1c361cc030aa76bec8184a59e05d192c2397.zip |
Warn if this is used in constructor
Diffstat (limited to 'libsolidity/analysis/StaticAnalyzer.h')
-rw-r--r-- | libsolidity/analysis/StaticAnalyzer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/analysis/StaticAnalyzer.h b/libsolidity/analysis/StaticAnalyzer.h index cd6913b5..21a487df 100644 --- a/libsolidity/analysis/StaticAnalyzer.h +++ b/libsolidity/analysis/StaticAnalyzer.h @@ -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; }; } |