diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-03 17:20:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-03 17:20:46 +0300 |
commit | ee79ea6306416dc67eec03216a4075b1c342fd89 (patch) | |
tree | 3070faa4c002bf2350422678903906606e8edd83 /src/rules | |
parent | a3c1145553b12532b18d2f439b01b649dc0d4b6e (diff) | |
download | mplint-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.cpp | 5 |
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"); + } } |