| Summary: | Linker warning not recognized | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Axel Mueller <aegges> | ||||||||
| Component: | cdt-build | Assignee: | Andrew Gvozdev <angvoz.dev> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Andrew Gvozdev <angvoz.dev> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | ||||||||||
| Version: | 7.0 | ||||||||||
| Target Milestone: | 7.0 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Axel Mueller
OK, it seems we should account for the path of ld. Is a patch coming? Created attachment 169893 [details]
take preceding path into account
This patch will take a preceding path (Linux or Windows style) into account.
(In reply to comment #2) > Created an attachment (id=169893) > take preceding path into account > This patch will take a preceding path (Linux or Windows style) into account. Here are some notes: > ^(/.*/|[a-z|A-Z]:\\.*|)ld(\\.exe)?: [Ww]arning:? (.*) - You don't need '^' in the beginning or '$' in the end. There is checking for that in the code to allow for brevity in UI. - The second subexpression for Windows style does not work because in property file backslashes need to be doubled. Anyway, I would prefer simpler pattern like .*([/\\])?ld unless there is a real case where it clashes. - Can you add a test case for this in GLDErrorParserTests? You would catch Windows problem if you had one :) Created attachment 170113 [details]
take preceding path into account, simple version
Created attachment 170115 [details]
testcases
Here are some testcases. The original one from my first post for Linux and some tests for Windows (some of them found via Google). All tests run flawlessly on my Linux box. I don't have a Windows installation for testing :)
Committed on HEAD (7.0) with slight changes. Thanks, Axel. *** cdt cvs genie on behalf of agvozdev *** bug 314253: Linker warning not recognized [*] GLDErrorParserTests.java 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/GLDErrorParserTests.java?root=Tools_Project&r1=1.2&r2=1.3 *** cdt cvs genie on behalf of agvozdev *** bug 314253: Linker warning not recognized Based on work from Axel Mueller [*] GLDErrorParserTests.java 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/GLDErrorParserTests.java?root=Tools_Project&r1=1.2&r2=1.3 [*] plugin.properties 1.57 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/plugin.properties?root=Tools_Project&r1=1.56&r2=1.57 [*] plugin.xml 1.148 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/plugin.xml?root=Tools_Project&r1=1.147&r2=1.148 |