[cfe-commits] r49547 - in /cfe/trunk: include/clang/AST/Decl.h include/clang/AST/DeclBase.h include/clang/AST/DeclObjC.h lib/AST/Decl.cpp
Sam Bishop
sam at bishop.dhs.org
Sat Apr 12 21:27:44 PDT 2008
Argiris Kirtzidis wrote:
> Since you check 'Kind', you are safe to cast using static_cast:
>
> +#define CASE(KIND) case KIND:
> static_cast<KIND##Decl*>(this)->~KIND##Decl(); break
>
> avoids using the extra check from the cast<> template.
Good point. The check is entirely redundant.
Thanks!
Sam
More information about the cfe-commits
mailing list