[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
Tue Mar 8 06:07:08 PST 2022
tbaeder marked 2 inline comments as done.
tbaeder added inline comments.
================
Comment at: clang/lib/Headers/stdbool.h:16
/* Don't define bool, true, and false in C++, except as a GNU extension. */
#ifndef __cplusplus
#define bool _Bool
----------------
aaron.ballman wrote:
> We're inside an `#if __STDC_VERSION__` check here, so I think this will now always evaluate to true.
Not being able to indent preprocessor directives at all makes this pretty hard to read, but it should work like this.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120244/new/
https://reviews.llvm.org/D120244
More information about the cfe-commits
mailing list