This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/46836] implement #pragma system_header "canonical_filename"


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46836

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-10-09
            Summary|reporting locations for     |implement #pragma
                   |names in std namespace      |system_header
                   |could be improved           |"canonical_filename"
     Ever confirmed|0                           |1

--- Comment #9 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to dodji@seketeli.org from comment #8)
> > #pragma GCC system_header "canonical_name"
> 
> Seconded.

Thus, confirmed. Also, it should be an easy hack for a new contributor. Just
process the optional parameter, store the filename somehow, and when printing
diagnostic, use the canonical name if it exists. Also, adjust the #line
directive, so this works even in preprocessed files. I don't think it should
mess up with the original LOCATION_FILE(), since that is used for various other
things.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]