diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-24 15:53:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-24 15:53:52 +0300 |
commit | 8520c503041946148e499faf6a6b65b2afc670bf (patch) | |
tree | 342870ea2f00de996b90c3bd26bcbb003777076f /src/rulebase.h | |
parent | c20a4844817573be1de5f355d4890e93db386e54 (diff) | |
download | mplint-8520c503041946148e499faf6a6b65b2afc670bf.tar.gz mplint-8520c503041946148e499faf6a6b65b2afc670bf.tar.bz2 mplint-8520c503041946148e499faf6a6b65b2afc670bf.tar.xz mplint-8520c503041946148e499faf6a6b65b2afc670bf.zip |
Add second rule for checking #include "debug.h"
Diffstat (limited to 'src/rulebase.h')
-rw-r--r-- | src/rulebase.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rulebase.h b/src/rulebase.h index d205b7d..1d237ee 100644 --- a/src/rulebase.h +++ b/src/rulebase.h @@ -34,6 +34,8 @@ class RuleBase virtual ~RuleBase() { } + void init(); + virtual void start() { } @@ -61,6 +63,11 @@ class RuleBase std::string getName() const A_WARN_UNUSED { return ruleName; } + bool getFlag() const A_WARN_UNUSED + { return flag; } + + void terminateRule(); + protected: void print(const std::string &text) const; @@ -75,6 +82,7 @@ class RuleBase std::string file; std::string ruleName; int line; + bool flag; }; #endif // RULEBASE_H |