[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-dev
Subject: Re: [cfe-dev] FunctionDecls by typedef crash the C++ front-end
From: Chris Lattner <clattner () apple ! com>
Date: 2008-10-24 18:00:23
Message-ID: 6E90EC26-5667-41A4-99D5-46018410D3EE () apple ! com
[Download RAW message or body]
On Oct 24, 2008, at 7:43 AM, Doug Gregor wrote:
>> In general I think there should be some convention, whether they are
>> produced or not should be the same for both front-ends. Producing
>> them for
>> C++ and not for C is more confusing.
>
> I think Argiris is voicing an important principle here: regardless of
> what dialect we're parsing, we should produce ASTs of the same form.
> Having the ParmVarDecls or not shouldn't be a C-vs-C++ decision, but
> there could be a function-definition-vs-non-function-definition
> decision. Sometimes the same syntax has different interpretations in
> different dialects---"void f();" in C vs. C++, for example---but the
> notion of a function "f" with no prototype or of a function f" that
> accepts no arguments and has a void return type is always the same in
> the AST.
I agree completely,
-Chris
_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic