From 1bc6a5a9601d953a914563d7782764b02607aa35 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Jun 2014 20:35:57 +0300 Subject: Fix final detection. --- src/rules/final.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rules/final.cpp b/src/rules/final.cpp index 9ff82da..7e4d661 100644 --- a/src/rules/final.cpp +++ b/src/rules/final.cpp @@ -32,7 +32,7 @@ endRule(finalCheck) parseLineRule(finalCheck) { - if (isMatch(data, "(.*)(class|struct) ([a-zA-Z_0123456789]+)" + if (isMatch(data, "([ ]*)(class|struct) ([a-zA-Z_0123456789]+)" "($|( [:])([^;]+)(.*))")) { print("Need add final or notfinal into class declaration"); -- cgit v1.2.3-70-g09d2