diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-06-09 21:35:27 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-06-13 22:57:08 +0800 |
commit | 8775e77305f84117827f1e6165c4d3776c51f667 (patch) | |
tree | 978a9aef8a6ac79928ac3cde256f7295bb658d83 /libsolidity/analysis/NameAndTypeResolver.h | |
parent | a7241df4b736bb1743048204d901c1bb1a902d0c (diff) | |
download | dexon-solidity-8775e77305f84117827f1e6165c4d3776c51f667.tar dexon-solidity-8775e77305f84117827f1e6165c4d3776c51f667.tar.gz dexon-solidity-8775e77305f84117827f1e6165c4d3776c51f667.tar.bz2 dexon-solidity-8775e77305f84117827f1e6165c4d3776c51f667.tar.lz dexon-solidity-8775e77305f84117827f1e6165c4d3776c51f667.tar.xz dexon-solidity-8775e77305f84117827f1e6165c4d3776c51f667.tar.zst dexon-solidity-8775e77305f84117827f1e6165c4d3776c51f667.zip |
Add a warning about a varialbe of the name of an instruction
Diffstat (limited to 'libsolidity/analysis/NameAndTypeResolver.h')
-rw-r--r-- | libsolidity/analysis/NameAndTypeResolver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/analysis/NameAndTypeResolver.h b/libsolidity/analysis/NameAndTypeResolver.h index 0441867d..84628778 100644 --- a/libsolidity/analysis/NameAndTypeResolver.h +++ b/libsolidity/analysis/NameAndTypeResolver.h @@ -90,6 +90,9 @@ public: std::vector<Declaration const*> const& _declarations ); + /// Generate and store warnings about variables that are named like instructions. + void warnVariablesNamedLikeInstructions(); + private: /// Internal version of @a resolveNamesAndTypes (called from there) throws exceptions on fatal errors. bool resolveNamesAndTypesInternal(ASTNode& _node, bool _resolveInsideCode = true); |