summaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-02 20:35:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-02 20:35:57 +0300
commit1bc6a5a9601d953a914563d7782764b02607aa35 (patch)
treeabbb416ffd55b578f2004896c3a45d0286d98869 /src/rules
parentadb266f686427fd5d0d5018fb7e859e3d8ef1ad9 (diff)
downloadmplint-1bc6a5a9601d953a914563d7782764b02607aa35.tar.gz
mplint-1bc6a5a9601d953a914563d7782764b02607aa35.tar.bz2
mplint-1bc6a5a9601d953a914563d7782764b02607aa35.tar.xz
mplint-1bc6a5a9601d953a914563d7782764b02607aa35.zip
Fix final detection.
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/final.cpp2
1 files changed, 1 insertions, 1 deletions
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");