Re:How to convince any C developer to dump gcc and use clang
by matthavener on Saturday March 06, 2010 @11:00PM
(#1172854)
yeah, I'm thinking this might be more useful for c++ :)
[ Parent
| on HN ]
Re:How to convince any C developer to dump gcc and use clang
by chancho on Sunday March 07, 2010 @10:19AM
(#1173462)
In the meantime before clang fully supports C++ I would appreciate a flag for GCC that just gives me abbreviated error info:
file.cpp:65: error: please have a look at this line and see if anything jumps out at you.
as that is basically all GCC C++ errors are good for.
Re:How to convince any C developer to dump gcc and use clang
by nitrogen on Sunday March 07, 2010 @05:59PM
(#1174190)
Something like this might work:
g++ [options] | sed -e 's/^(.*: (error|warning):).*/\1 please have a look at this line and see if anything jumps out at you/'
Re:How to convince any C developer to dump gcc and use clang
by j_baker on Sunday March 07, 2010 @12:25PM
(#1173634)
I wouldn't hold out for any miracles. I think that there are several aspects of the language itself that will make improving error messages difficult. In particular, template error messages are probably without much hope.