rymiel marked an inline comment as done.
rymiel added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:23593-23594
- "template <typename T>\n"
- "concept DelayedCheck = static_cast<bool>(0) ||\n"
- " requires(T t) { t.bar(); } && sizeof(T) <= 8;");
----------------
owenpan wrote:
> What would happen with parentheses added?
> ```
> concept DelayedCheck = (static_cast<bool>(0) || requires(T t) { t.bar(); })
> && sizeof(T) <= 8;
> concept DelayedCheck = static_cast<bool>(0) || (requires(T t) { t.bar(); } &&
> sizeof(T) <= 8);
> ```
No difference:
```
concept DelayedCheck =
(static_cast<bool>(0) || requires(T t) { t.bar(); }) && sizeof(T) <= 8;
concept DelayedCheck =
static_cast<bool>(0) || (requires(T t) { t.bar(); } && sizeof(T) <= 8);
concept DelayedCheck =
static_cast<bool>(0) || requires(T t) { t.bar(); } && sizeof(T) <= 8;
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140339/new/
https://reviews.llvm.org/D140339
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits