mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
bug 409697: References to "required from" appear in red in the console and are flagged as errors in the problems view.
This commit is contained in:
parent
2358322ab5
commit
0062971af1
2 changed files with 22 additions and 1 deletions
|
@ -198,6 +198,27 @@ public class GCCErrorParserTests extends GenericErrorParserTests {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGccErrorMessages_RequiredFromHere() throws IOException {
|
||||||
|
runParserTest(
|
||||||
|
new String[] {
|
||||||
|
"utils/bar.hpp:61:7: required from ‘static void OpenCVUtils::show_contours_d(std::string, cv::Mat&, const std::vector<std::vector<cv::Point_<_Tp> > >&, bool, const Scalar&, int, int, int) [with T = int; std::string = std::basic_string<char>; cv::Scalar = cv::Scalar_<double>]’",
|
||||||
|
"utils/foo.cpp:117:96: required from here",
|
||||||
|
},
|
||||||
|
0, // errors
|
||||||
|
0, // warnings
|
||||||
|
2, // infos
|
||||||
|
new String[] {
|
||||||
|
"bar.hpp",
|
||||||
|
"foo.cpp",
|
||||||
|
},
|
||||||
|
new String[] {
|
||||||
|
"required from ‘static void OpenCVUtils::show_contours_d(std::string, cv::Mat&, const std::vector<std::vector<cv::Point_<_Tp> > >&, bool, const Scalar&, int, int, int) [with T = int; std::string = std::basic_string<char>; cv::Scalar = cv::Scalar_<double>]’",
|
||||||
|
"required from here",
|
||||||
|
},
|
||||||
|
new String[] {GCC_ERROR_PARSER_ID}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public void testGccErrorMessages_Infos() throws IOException {
|
public void testGccErrorMessages_Infos() throws IOException {
|
||||||
runParserTest(
|
runParserTest(
|
||||||
new String[] {
|
new String[] {
|
||||||
|
|
|
@ -49,7 +49,7 @@ CDTGNUCErrorParser.name=GNU gcc/g++ Error Parser
|
||||||
CDTGNUCErrorParser.regex.ReportedOnlyOnce=(.*?):(\\d+):(\\d+:)? .*\\(Each undeclared identifier is reported only once.*
|
CDTGNUCErrorParser.regex.ReportedOnlyOnce=(.*?):(\\d+):(\\d+:)? .*\\(Each undeclared identifier is reported only once.*
|
||||||
CDTGNUCErrorParser.regex.ForEachFunctionItAppearsIn=(.*?):(\\d+):(\\d+:)? .*for each function it appears in.\\).*
|
CDTGNUCErrorParser.regex.ForEachFunctionItAppearsIn=(.*?):(\\d+):(\\d+:)? .*for each function it appears in.\\).*
|
||||||
CDTGNUCErrorParser.regex.ReportedOnlyOncePerInputFile=(.*?):(\\d+):(\\d+:)? .*this will be reported only once per input file.*
|
CDTGNUCErrorParser.regex.ReportedOnlyOncePerInputFile=(.*?):(\\d+):(\\d+:)? .*this will be reported only once per input file.*
|
||||||
CDTGNUCErrorParser.regex.InstantiatedFromHere=(.*?):(\\d+):(\\d+:)?\\s*(.*instantiated from .*)
|
CDTGNUCErrorParser.regex.InstantiatedFromHere=(.*?):(\\d+):(\\d+:)?\\s*(.*((instantiated)|(required)) from .*)
|
||||||
CDTGNUCErrorParser.regex.GenericInfo=(.*?):(\\d+):(\\d+:)?\\s*(([Nn]ote)|(NOTE)|([Ii]nfo)|(INFO)): (.*)
|
CDTGNUCErrorParser.regex.GenericInfo=(.*?):(\\d+):(\\d+:)?\\s*(([Nn]ote)|(NOTE)|([Ii]nfo)|(INFO)): (.*)
|
||||||
CDTGNUCErrorParser.regex.ParseErrorBefore=(.*?):(\\d+):(\\d+:)? (parse error before.*[`'"](.*)['"].*)
|
CDTGNUCErrorParser.regex.ParseErrorBefore=(.*?):(\\d+):(\\d+:)? (parse error before.*[`'"](.*)['"].*)
|
||||||
CDTGNUCErrorParser.regex.ErrorUndeclared=(.*?):(\\d+):(\\d+:)? [Ee]rror: ([`'"](.*)['"] undeclared .*)
|
CDTGNUCErrorParser.regex.ErrorUndeclared=(.*?):(\\d+):(\\d+:)? [Ee]rror: ([`'"](.*)['"] undeclared .*)
|
||||||
|
|
Loading…
Add table
Reference in a new issue