[PATCH] D120244: [clang][sema] Enable first-class bool support for C2x

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 21 04:51:45 PST 2022


tbaeder added inline comments.


================
Comment at: clang/test/Sema/c2x-bool.c:10
+_Static_assert(_Generic(true, bool : true, default: false));
+_Static_assert(_Generic(false, bool : true, default: false));
+
----------------
Not that clang-format wanted me to format these two lines, but the result was pretty ugly:

```
-_Static_assert(_Generic(true, bool : true, default: false));
-_Static_assert(_Generic(false, bool : true, default: false));
+_Static_assert(_Generic(true, bool
+                        : true, default
+                        : false));
+_Static_assert(_Generic(false, bool
+                        : true, default
+                        : false));
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120244/new/

https://reviews.llvm.org/D120244



More information about the cfe-commits mailing list