Hi,
In the build messages panel, whenever I get "instantiated from here" messages, for example (taken from the build log) :
In file included from ../Frost/Utils/include/frost_utils_types.h:109:0,
from ../Frost/Utils/include/frost_utils.h:18,
from include/blockchunk.h:4,
from /home/kalith/Programmation/Mycraft/src/blockchunk.cpp:1:
../Frost/Utils/include/frost_utils_ptr.h: In member function ‘Frost::s_ptr<T>::operator Frost::s_ptr<N>() [with N = Frost::Block, T = const Frost::Block]’:
/home/kalith/Programmation/Mycraft/src/blockchunk.cpp:572:75: instantiated from here
../Frost/Utils/include/frost_utils_ptr.h:317:36: error: invalid conversion from ‘const Frost::Block*’ to ‘Frost::Block*’
../Frost/Utils/include/frost_utils_ptr.h:317:36: error: initializing argument 1 of ‘Frost::s_ptr<T>::s_ptr(T*) [with T = Frost::Block]’
... I can only click on the last two error messages (the actual error), and not on the one just before, the "instantiated from here" one.
The actual error location is of no use to me, as it points to a smart pointer header. I'm interested in the root of the problem (/home/kalith/Programmation/Mycraft/src/blockchunk.cpp:572), but the build messages panel doesn't allow me to reach it.
I have to go there manually and, most of the time, to do so I have to expand the "file" tab because the file path is too long.
Can it be fixed somehow ?
If I understand correctly, there are two variants of this message, with and without the character position ?
If so, I know very little of regex, but the following seems to work correctly for both cases :
([][{}() \t#%$~A-Za-z0-9_:+/\.-]+):([0-9]+):[0-9\:][ \t]+([iI]nstantiated from .*)
Can you please test these two regexes:
Both have to be included before (!) the existing Compiler warning and before the existing Compiler error.
Only tested on linux with gcc4.4 to 4.6 (only 4.5 and 4.6 lead to the issue.
Compiler warning (2):
([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]([Ww]arning:[ \t].*)
Compiler error (2)
([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)
Line number etc. are the same as for the existing regexes.