diff options
Diffstat (limited to 'src/rules')
-rw-r--r-- | src/rules/final.cpp | 7 |
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"); + } } |