mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
bug 318093: GCCErrorParser treats instantiation warnings as errors
This commit is contained in:
parent
637116e411
commit
494b2dc62c
3 changed files with 13 additions and 5 deletions
|
@ -180,13 +180,20 @@ public class GCCErrorParserTests extends GenericErrorParserTests {
|
|||
public void testGccErrorMessages_InstantiatedFromHere() throws IOException {
|
||||
runParserTest(
|
||||
new String[] {
|
||||
"C:/QNX630/workspace/System/src/CommonScriptClasses.cpp:609: instantiated from here",
|
||||
"/usr/include/c++/4.1.3/ext/hashtable.h:600: instantiated from ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num(const _Val&, size_t) const [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int> >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<int>]’",
|
||||
"C:/QNX630/workspace/System/src/NewCommonScriptClasses.cpp:609: instantiated from here",
|
||||
},
|
||||
0, // errors
|
||||
0, // warnings
|
||||
1, // infos
|
||||
new String[] {"CommonScriptClasses.cpp"},
|
||||
new String[] {"instantiated from here"},
|
||||
2, // infos
|
||||
new String[] {
|
||||
"hashtable.h",
|
||||
"NewCommonScriptClasses.cpp",
|
||||
},
|
||||
new String[] {
|
||||
"instantiated from ‘size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num(const _Val&, size_t) const [with _Val = std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>, _Key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _HashFcn = __gnu_cxx::hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _ExtractKey = std::_Select1st<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int> >, _EqualKey = std::equal_to<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Alloc = std::allocator<int>]’",
|
||||
"instantiated from here",
|
||||
},
|
||||
new String[] {GCC_ERROR_PARSER_ID}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -139,6 +139,7 @@ public abstract class GenericErrorParserTests extends TestCase {
|
|||
if (expectedFileNames != null) {
|
||||
assertEquals(expectedFileNames.length, markerGenerator.uniqFiles.size());
|
||||
for (int i = 0; i < expectedFileNames.length; i++) {
|
||||
// Keep in mind that uniqFiles get alphabetically sorted
|
||||
IPath path = ((IFile)markerGenerator.uniqFiles.get(i)).getLocation();
|
||||
assertEquals(expectedFileNames[i], path.lastSegment());
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ CDTGNUCErrorParser.name=CDT GNU C/C++ Error Parser
|
|||
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.ReportedOnlyOncePerInputFile=(.*?):(\\d+):(\\d+:)? .*this will be reported only once per input file.*
|
||||
CDTGNUCErrorParser.regex.InstantiatedFromHere=(.*?):(\\d+):(\\d+:)?\\s*(.*instantiated from here.*)
|
||||
CDTGNUCErrorParser.regex.InstantiatedFromHere=(.*?):(\\d+):(\\d+:)?\\s*(.*instantiated from .*)
|
||||
CDTGNUCErrorParser.regex.GenericInfo=(.*?):(\\d+):(\\d+:)?\\s*(([Nn]ote)|(NOTE)|([Ii]nfo)|(INFO)): (.*)
|
||||
CDTGNUCErrorParser.regex.ParseErrorBefore=(.*?):(\\d+):(\\d+:)? (parse error before.*[`'"](.*)['"].*)
|
||||
CDTGNUCErrorParser.regex.ErrorUndeclared=(.*?):(\\d+):(\\d+:)? [Ee]rror: ([`'"](.*)['"] undeclared .*)
|
||||
|
|
Loading…
Add table
Reference in a new issue