summaryrefslogtreecommitdiff
path: root/src/rulebase.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-24 15:53:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-24 15:53:52 +0300
commit8520c503041946148e499faf6a6b65b2afc670bf (patch)
tree342870ea2f00de996b90c3bd26bcbb003777076f /src/rulebase.h
parentc20a4844817573be1de5f355d4890e93db386e54 (diff)
downloadmplint-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.h8
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