diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-24 15:02:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-24 15:03:09 +0300 |
commit | 19b130c8dd9119bf9eafb7756bcde828e4fc9b48 (patch) | |
tree | 72c826ca28a7fc1ba9c6445e33f2e8f9261a37d4 /src/rules | |
parent | f7190f06bdfc24415ace9dad391aed71aca8f914 (diff) | |
download | mplint-19b130c8dd9119bf9eafb7756bcde828e4fc9b48.tar.gz mplint-19b130c8dd9119bf9eafb7756bcde828e4fc9b48.tar.bz2 mplint-19b130c8dd9119bf9eafb7756bcde828e4fc9b48.tar.xz mplint-19b130c8dd9119bf9eafb7756bcde828e4fc9b48.zip |
Add function called after file was processed.
Diffstat (limited to 'src/rules')
-rw-r--r-- | src/rules/dump.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/rules/dump.cpp b/src/rules/dump.cpp index b4cec48..24b8706 100644 --- a/src/rules/dump.cpp +++ b/src/rules/dump.cpp @@ -22,9 +22,14 @@ registerRuleExt(dumpCpp, "(.+)[.]cpp") -initRule(dumpCpp) +startRule(dumpCpp) { - printRaw("Checking file: " + file); + printRaw("Start checking file: " + file); +} + +endRule(dumpCpp) +{ + printRaw("End checking file: " + file); } parseLineRule(dumpCpp) @@ -32,11 +37,17 @@ parseLineRule(dumpCpp) print(data); } + registerRuleExt(dumpH, "(.+)[.]h") -initRule(dumpH) +startRule(dumpH) +{ + printRaw("Start checking file: " + file); +} + +endRule(dumpH) { - printRaw("Checking file: " + file); + printRaw("End checking file: " + file); } parseLineRule(dumpH) |