[cfe-commits] r137653 - in /cfe/trunk: include/clang/AST/Decl.h include/clang/AST/DeclCXX.h include/clang/Basic/DiagnosticSemaKinds.td lib/AST/ASTImporter.cpp lib/AST/Decl.cpp lib/AST/DeclCXX.cpp lib/AST/Type.cpp lib/Parse/ParseDeclCXX.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaTemplateInstantiateDecl.cpp lib/Serialization/ASTReaderDecl.cpp lib/Serialization/ASTWriterDecl.cpp test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p2.cpp

Enea Zaffanella zaffanella at cs.unipr.it
Sun Aug 21 05:37:08 PDT 2011


Il 15/08/2011 23:04, Richard Smith ha scritto:
> Author: rsmith
> Date: Mon Aug 15 16:04:07 2011
> New Revision: 137653
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=137653&view=rev
> Log:
> Track in the AST whether a function is constexpr.

Have you considered using an attribute (rather than a flag) for storing
the constexpr specifier?

Using attributes was previously suggested as a better alternative:

http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20110124/038124.html

There they were talking about the `final' and `override' keywords, but
the same arguments should apply to the constexpr specifier too.

Cheers,
Enea.



More information about the cfe-commits mailing list