[cfe-commits] r49623 - in /cfe/trunk: include/clang/Basic/DiagnosticKinds.def include/clang/Parse/AccessSpecifier.h include/clang/Parse/Action.h include/clang/Parse/Parser.h lib/Parse/ParseDecl.cpp lib/Parse/ParseDeclCXX.cpp lib/Sema/Sema.h lib/S

Chris Lattner clattner at apple.com
Sun Apr 13 20:37:06 PDT 2008


On Apr 13, 2008, at 5:12 PM, Doug Gregor wrote:
>> // 
>> = 
>> = 
>> = 
>> -------------------------------------------------------------------- 
>> ===//
>>> +  // C++ 10: Derived classes [class.derived]
>>> +  void ParseBaseClause(DeclTy *ClassDecl);
>>> +  bool ParseBaseSpecifier(DeclTy *ClassDecl);
>>> +  AccessSpecifier getAccessSpecifierIfPresent();
>>>
>>
>> getAccessSpecifierIfPresent should be marked const, or  
>> alternatively, maybe
>> it should consume the specifier (if present) before returning the  
>> enum?
>
> I think it's cleanest if it's const, and the caller consumes the token
> if needed.

Sounds good, thanks Doug!

-Chris



More information about the cfe-commits mailing list