[cfe-dev] Attribute position in parsing class member function declarations
John Thompson
john.thompson.jtsoftware at gmail.com
Thu Nov 19 19:44:20 PST 2009
I have a couple of cases where I'm getting an error from Clang from code
that compiles with gcc.
The code reduces to something like (members in a class declaration):
virtual void Log(const char*, ...) __attribute__ ((
__format__(__printf__,1,2) )) = 0;
virtual void PushContextMessage(const char* , ...) __attribute__ ((
__format__(__printf__,1,2) )) {};
Both get "expected ';' at end of declaration list" errors.
The enclosed patch takes a stab at fixing it with some copy/paste
programming, assuming it needs fixing, but you might have a better fix or
feedback.
-John
--
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091119/63082617/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attr_pos.patch
Type: application/octet-stream
Size: 11265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091119/63082617/attachment.obj>
More information about the cfe-dev
mailing list