[cfe-commits] r59462 - in /cfe/trunk: docs/InternalsManual.html include/clang/AST/DeclBase.h include/clang/AST/DeclarationName.h include/clang/Basic/DiagnosticKinds.def include/clang/Parse/Action.h lib/AST/DeclarationName.cpp lib/Parse/MinimalAct

Doug Gregor doug.gregor at gmail.com
Wed Nov 19 11:03:20 PST 2008


On Wed, Nov 19, 2008 at 1:34 PM, argiris kirtzidis <akyrtzi at gmail.com> wrote:
> Douglas Gregor wrote:
>>
>>   +  /// ActOnConversionFunctionExpr - Parse a C++ conversion function
>> +  /// name (e.g., operator void const *) as an expression. This is
>> +  /// very similar to ActOnIdentifierExpr, except that instead of
>> +  /// providing an identifier the parser provides the type of the
>> +  /// conversion function.
>> +  virtual ExprResult ActOnConversionFunctionExpr(Scope *S, +
>>                                     SourceLocation OperatorLoc,
>> +                                                 TypeTy *Type,
>> +                                                 bool HasTrailingLParen,
>> +                                                 const CXXScopeSpec *SS =
>> 0) {
>> +    return 0;
>> +  }
>> +
>>
>
> I think it's better to change
>
> const CXXScopeSpec *SS = 0
>
> to
>
> const CXXScopeSpec &SS
>
>
> The former is useful when the action method is called from parts of the
> parser that the C++ front-end doesn't reach (C-only/ObjC), but this method
> is C++ specific so the latter is preferable.

Okay.

> BTW, should we follow the convention that all C++ specific actions have the
> 'CXX' prefix ? (in this case should that be
> ActOnCXXConversionFunctionExpr ?)

Yeah, I guess so.

Thanks!

  - Doug



More information about the cfe-commits mailing list