Hacker News new | ask | show | jobs
by matthavener 5951 days ago
yeah, I'm thinking this might be more useful for c++ :)
2 comments

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.
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/'
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.