summaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-03 17:20:46 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-03 17:20:46 +0300
commitee79ea6306416dc67eec03216a4075b1c342fd89 (patch)
tree3070faa4c002bf2350422678903906606e8edd83 /src/rules
parenta3c1145553b12532b18d2f439b01b649dc0d4b6e (diff)
downloadmplint-ee79ea6306416dc67eec03216a4075b1c342fd89.tar.gz
mplint-ee79ea6306416dc67eec03216a4075b1c342fd89.tar.bz2
mplint-ee79ea6306416dc67eec03216a4075b1c342fd89.tar.xz
mplint-ee79ea6306416dc67eec03216a4075b1c342fd89.zip
Add finalize ignore into virtual check.
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/virtual.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rules/virtual.cpp b/src/rules/virtual.cpp
index 70f0e36..a52a369 100644
--- a/src/rules/virtual.cpp
+++ b/src/rules/virtual.cpp
@@ -32,6 +32,9 @@ endRule(virtualCheck)
parseLineRule(virtualCheck)
{
- if (isMatch(data, "(.+)virtual[ ](.+)[ ](override|final)(.+)"))
+ if (isMatch(data, "(.+)virtual[ ](.+)[ ](override|final)(.*)") &&
+ data.find("finalize") == std::string::npos)
+ {
print("Keywords virtual is useless if used with override or final");
+ }
}