[PATCH] D31513: [Sema] Add __is_aggregate type-trait and implement LWG 2015

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 31 15:19:11 PDT 2017


EricWF updated this revision to Diff 93715.
EricWF added a comment.

- Correctly report array types as aggregates. (Woops!)

- Also report vector types as aggregates. This behavior mirrors GCC.

- report _Complex int and _Complex float as aggregates as well. Currently GCC does not have this behavior, but since they support aggregate initialization I think it makes sense to support them as aggregates.


https://reviews.llvm.org/D31513

Files:
  docs/LanguageExtensions.rst
  include/clang/Basic/TokenKinds.def
  include/clang/Basic/TypeTraits.h
  lib/Parse/ParseDeclCXX.cpp
  lib/Parse/ParseExpr.cpp
  lib/Sema/SemaExprCXX.cpp
  test/PCH/cxx-traits.cpp
  test/PCH/cxx-traits.h
  test/SemaCXX/type-traits.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31513.93715.patch
Type: text/x-patch
Size: 13021 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170331/d6f30a97/attachment.bin>


More information about the cfe-commits mailing list