Here a code to demonstrate an annoying problem:
class A {
public:
A():
m_b(1),
m_a(2)
{}
private:
int m_a;
int m_b;
};
This is an output on Console view:
make all
Building file: ../test.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"test.d" -MT"test.d" -o"test.o" "../test.cpp"
../test.cpp: In constructor 'A::A()':
../test.cpp:9: warning: 'A::m_b' will be initialized after
../test.cpp:8: warning: 'int A::m_a'
../test.cpp:3: warning: when initialized here
Finished building: ../test.cpp
The problem is that in Problems view I’ll see 3 separate warnings (lines in output containing warning word), while indeed there’re 4 lines in output describing a one problem.
Is there’re something I’m missing?
Additional question. Maybe it’s in Eclipse spirit, but is there a way to make Console view clickable as most IDE does (e.g. Visual Studio, emacs …)
Thanks
Dima
According to the last comment on this bug report you should be able to click on the console view to jump to code in CDT 7.0.
It might be worth checking out the milestone builds to see if the grouping of error messages is better. If not raising a bug to attempt to group related messages would be a good idea.