summaryrefslogtreecommitdiff
path: root/src/rules/final.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rules/final.cpp')
-rw-r--r--src/rules/final.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rules/final.cpp b/src/rules/final.cpp
index 17134ed..9ff82da 100644
--- a/src/rules/final.cpp
+++ b/src/rules/final.cpp
@@ -32,6 +32,9 @@ endRule(finalCheck)
parseLineRule(finalCheck)
{
- if (isMatch(data, "(.*)(class|struct) ([a-zA-Z_]+)([\\\\n]|( [:])([^;]+)(.*))"))
- print(data);
+ if (isMatch(data, "(.*)(class|struct) ([a-zA-Z_0123456789]+)"
+ "($|( [:])([^;]+)(.*))"))
+ {
+ print("Need add final or notfinal into class declaration");
+ }
}