Skip to content

Commit dda6017

Browse files
committed
parser-common.hh: adopt definition of RE_CHECKER_NAME
... from csparser.cc No changes in behavior intended by this commit.
1 parent a4ea1ec commit dda6017

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/csparser.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131

3232
#include <boost/algorithm/string.hpp>
3333

34-
#define RE_CHECKER_NAME_SA "(?:[A-Za-z][0-9A-Za-z_.]+)"
35-
#define RE_CHECKER_NAME_MISRA "(?:MISRA C(?:\\+\\+)?-[0-9]+ (?:Directive|Rule) [0-9.-]+)"
36-
#define RE_CHECKER_NAME RE_CHECKER_NAME_SA "|" RE_CHECKER_NAME_MISRA
37-
3834
namespace CovParserImpl {
3935

4036
class LineReader {

src/parser-common.hh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424

2525
#include <string>
2626

27+
#define RE_CHECKER_NAME_SA "(?:[A-Za-z][0-9A-Za-z_.]+)"
28+
#define RE_CHECKER_NAME_MISRA "(?:MISRA C(?:\\+\\+)?-[0-9]+ (?:Directive|Rule) [0-9.-]+)"
29+
#define RE_CHECKER_NAME RE_CHECKER_NAME_SA "|" RE_CHECKER_NAME_MISRA
30+
2731
#define RE_EVENT_GCC "(?:(?:(?:fatal|internal) )?[a-z][A-Za-z0-9_-]+)(?:\\[[^ \\]]+\\])?"
2832
#define RE_EVENT_PROSPECTOR "(?:[A-Z]+[0-9]+\\[[a-z0-9-]+\\])"
2933
#define RE_EVENT RE_EVENT_GCC "|" RE_EVENT_PROSPECTOR

0 commit comments

Comments
 (0)