File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -232,4 +232,13 @@ public void testGccErrorMessages_InConstexprExpansion() throws IOException {
232
232
"unused parameter 'bitrate' [-Wunused-parameter]" },
233
233
new String [] { GCC_ERROR_PARSER_ID });
234
234
}
235
+
236
+ @ Test
237
+ public void testGccErrorMessages_UnrecognizedCommandLineOption () throws IOException {
238
+ runParserTest (new String [] { "arm-none-eabi-gcc: error: unrecognized command-line option '--foobar'" }, 1 , // errors
239
+ 0 , //warnings
240
+ 0 , //infos
241
+ null , new String [] { "unrecognized command-line option '--foobar'" },
242
+ new String [] { GCC_ERROR_PARSER_ID });
243
+ }
235
244
}
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ CDTGNUCErrorParser.regex.ParseErrorBefore=(.*?):(\\d+):(\\d+:)? (parse error bef
67
67
CDTGNUCErrorParser.regex.ErrorUndeclared =(.*?):(\\ d+):(\\ d+:)? [Ee]rror: ([`'"](.*)['"] undeclared .*)
68
68
CDTGNUCErrorParser.regex.ErrorConflictingTypesFor =(.*?):(\\ d+):(\\ d+:)? [Ee]rror: (conflicting types for .*[`'"](.*)['"].*)
69
69
CDTGNUCErrorParser.regex.GenericError =(.*?):(\\ d+):(\\ d+:)?\\ s*(([Ee]rror)|(ERROR)): (.*)
70
+ CDTGNUCErrorParser.regex.InvocationError =(.*?): (([Ee]rror)|(ERROR)): (.*)
70
71
CDTGNUCErrorParser.regex.DefinedButNotUsed =(.*?):(\\ d+):(\\ d+:)? [Ww]arning: ([`'"](.*)['"] defined but not used.*)
71
72
CDTGNUCErrorParser.regex.WarningConflictingTypesFor =(.*?):(\\ d+):(\\ d+:)? [Ww]arning: (conflicting types for .*[`'"](.*)['"].*)
72
73
CDTGNUCErrorParser.regex.GenericWarning =(.*?):(\\ d+):(\\ d+:)?\\ s*(([Ww]arning)|(WARNING)): (.*)
Original file line number Diff line number Diff line change 241
241
regex =" %CDTGNUCErrorParser.regex.GenericError"
242
242
severity =" Error"
243
243
variable-expr =" $3" />
244
+ <pattern description-expr =" $5" eat-processed-line =" true" file-expr =" " line-expr =" " regex =" %CDTGNUCErrorParser.regex.InvocationError" severity =" Error" variable-expr =" " />
244
245
<pattern description-expr =" $7" eat-processed-line =" true" file-expr =" $1" line-expr =" $2" regex =" %CDTGNUCErrorParser.regex.GenericWarning" severity =" Warning" />
245
246
<pattern description-expr =" $10" eat-processed-line =" true" file-expr =" $1" line-expr =" $2" regex =" %CDTGNUCErrorParser.regex.GenericInfo" severity =" Info" />
246
247
<pattern description-expr =" $4" eat-processed-line =" true" file-expr =" $1" line-expr =" $2" regex =" %CDTGNUCErrorParser.regex.OtherError" severity =" Error" />
You can’t perform that action at this time.
0 commit comments