[cfe-dev] clang error display in XCode

Luc Bourhis luc_j_bourhis at mac.com
Sat Oct 23 20:40:34 PDT 2010


This is not an issue with clang proper but considering the significant number of clang developers working at Apple, I thought my remark would have a better chance to be noticed here.

One of clang greatest strength is its meaningful formatting of errors. Especially invaluable is its using a marker

      return this->def(init<typename asu_parameter::scatterer_type *>
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

put to pinpoint the exact position of the error in the faulty line. However XCode uses a proportional font for the "Build Results" pane, and therefore the positioning of that marker is always wrong with respect to the quoted line of code, using that very example

      return this->def(init<typename asu_parameter::scatterer_type *>
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Only those of you sing an email client aware of rich text would see a difference of course! but you should see the point.

That's using XCode 3.2.2 and using a script build phase to issue compilation but the same problem would happen with any other target type I think.

Sorry for the noise,

Luc Bourhis


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101024/44d35e42/attachment.html>


More information about the cfe-dev mailing list