[PATCH] D102064: Parse vector bool when stdbool.h and altivec.h are included

Hubert Tong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 12 19:54:27 PDT 2021


hubert.reinterpretcast accepted this revision.
hubert.reinterpretcast added a comment.
This revision is now accepted and ready to land.

LGTM with comment.



================
Comment at: clang/test/Parser/altivec-zvector-bool.c:20-23
+__vector _Bool char Bc;
+__vector _Bool short Bsh;
+__vector _Bool short int Bshi;
+__vector _Bool int Bi;
----------------
I think having these as declarations of the names used above is beneficial because it confirms that the types formed using the `bool` spelling are compatible with the same using the `_Bool` spelling.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102064



More information about the cfe-commits mailing list