[cfe-commits] r149071 - in /cfe/trunk: include/clang/AST/DeclCXX.h lib/AST/DeclCXX.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sat Jan 28 04:31:17 PST 2012


On 26.01.2012, at 19:28, Argyrios Kyrtzidis wrote:

> Author: akirtzidis
> Date: Thu Jan 26 12:28:08 2012
> New Revision: 149071
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=149071&view=rev
> Log:
> Change HasMutableFields to HasOnlyCMembers and consider that a tag inside
> another tag does not break C-like-ness. rdar://10756831
> 
> Modified:
>    cfe/trunk/include/clang/AST/DeclCXX.h
>    cfe/trunk/lib/AST/DeclCXX.cpp
> 
> 
>   return isPOD() &&
> -      data().HasOnlyFields &&
> +      data().HasOnlyCMembers &&
>       !data().HasPrivateFields &&
>       !data().HasProtectedFields &&
>       !data().NumBases;

The last three conditions are subsumed by isPOD().

Sebastian



More information about the cfe-commits mailing list