[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/Sema/SemaDeclCXX.cpp test/Sema/decl-invalid.c test/Sema/inherit.cpp

Chris Lattner clattner at apple.com
Sun Apr 13 15:22:12 PDT 2008


On Apr 13, 2008, at 2:30 PM, Douglas Gregor wrote:
> Author: dgregor
> Date: Sun Apr 13 16:30:24 2008
> New Revision: 49623
>
> --- cfe/trunk/include/clang/Parse/Parser.h (original)
> +++ cfe/trunk/include/clang/Parse/Parser.h Sun Apr 13 16:30:24 2008
> @@ -482,6 +481,15 @@

>
> +  // 
> = 
> = 
> =-------------------------------------------------------------------- 
> ===//
> +  // 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?

> +++ cfe/trunk/lib/Parse/ParseDeclCXX.cpp Sun Apr 13 16:30:24 2008
> @@ -11,9 +11,10 @@
> //
> // 
> = 
> = 
> = 
> ----------------------------------------------------------------------= 
> ==//
>
> +#include "clang/Basic/Diagnostic.h"
> +#include "clang/Parse/DeclSpec.h"
> #include "clang/Parse/Parser.h"

I didn't notice this before, but Parser.h should be on top, since it's  
the interface to the .cpp file:
http://llvm.org/docs/CodingStandards.html#scf_includes

-Chris



More information about the cfe-commits mailing list