[cfe-dev] Attribute position in parsing class member function declarations
John Thompson
john.thompson.jtsoftware at gmail.com
Thu Nov 19 20:23:27 PST 2009
Oh, I'm sorry, I forgot to hit save after editing the patch. Here it is
again with just the relevant changes. I also beefed up the C test a little,
but it just occured to me that there probably should be an additional test
file in C++, nonetheless here's a start.
On Thu, Nov 19, 2009 at 8:04 PM, Sean Hunt <rideau3 at gmail.com> wrote:
> John Thompson wrote:
>
>> 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
>>
>
> There's a lot of code in that patch that isn't directly related to the
> problem - could you please post a patch of just the specific changes you
> would make to address this issue?
>
> Sean
>
--
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/2f85af2f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attr_pos.patch
Type: application/octet-stream
Size: 1016 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091119/2f85af2f/attachment.obj>
More information about the cfe-dev
mailing list