[PATCH] D116280: [clang] adds unary type trait checks as compiler built-ins

Christopher Di Bella via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 25 11:23:42 PST 2021


cjdb created this revision.
Herald added a subscriber: dexonsmith.
cjdb requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This is information that the compiler already has, and should be exposed
so that the library doesn't need to reimplement the exact same
functionality.

- `__is_null_pointer`
- `__is_bounded_array`
- `__is_scoped_enum`


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116280

Files:
  clang/include/clang/Basic/TokenKinds.def
  clang/lib/Parse/ParseDeclCXX.cpp
  clang/lib/Parse/ParseExpr.cpp
  clang/lib/Sema/SemaExprCXX.cpp
  clang/test/SemaCXX/type-traits.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116280.396203.patch
Type: text/x-patch
Size: 9044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211225/462776a0/attachment.bin>


More information about the cfe-commits mailing list