summaryrefslogtreecommitdiff
path: root/src/rulebase.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-02 12:11:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-02 12:11:13 +0300
commita942b438a5742d87f84f5f09711abde3daebea1e (patch)
tree9a592d10db61f5a8686b1cda134990072fd62868 /src/rulebase.h
parent70d884a705e5f116e9f3f04315cebebfefc96957 (diff)
downloadmplint-a942b438a5742d87f84f5f09711abde3daebea1e.tar.gz
mplint-a942b438a5742d87f84f5f09711abde3daebea1e.tar.bz2
mplint-a942b438a5742d87f84f5f09711abde3daebea1e.tar.xz
mplint-a942b438a5742d87f84f5f09711abde3daebea1e.zip
Add src dir detection.
Diffstat (limited to 'src/rulebase.h')
-rw-r--r--src/rulebase.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rulebase.h b/src/rulebase.h
index 1d237ee..4421291 100644
--- a/src/rulebase.h
+++ b/src/rulebase.h
@@ -66,6 +66,9 @@ class RuleBase
bool getFlag() const A_WARN_UNUSED
{ return flag; }
+ void setRootDir(const std::string &dir)
+ { rootDir = dir; }
+
void terminateRule();
protected:
@@ -81,6 +84,7 @@ class RuleBase
std::string file;
std::string ruleName;
+ std::string rootDir;
int line;
bool flag;
};