From ee79ea6306416dc67eec03216a4075b1c342fd89 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Jan 2016 17:20:46 +0300 Subject: Add finalize ignore into virtual check. --- src/rules/virtual.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/rules') 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"); + } } -- cgit v1.2.3-70-g09d2