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

Zarko Todorovski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 7 04:30:04 PDT 2021


ZarkoCA created this revision.
ZarkoCA added reviewers: PowerPC, clang, cebowleratibm, hubert.reinterpretcast, bmahjour.
ZarkoCA added projects: clang, PowerPC.
ZarkoCA requested review of this revision.
Herald added a subscriber: cfe-commits.

Currently when including stdbool.h and altivec.h declaration of `vector bool`leads to
errors due to `bool` being expanded to '_Bool`. This patch implements allows the parser
to recognize '_Bool`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102064

Files:
  clang/include/clang/Parse/Parser.h
  clang/lib/Parse/ParseDecl.cpp
  clang/lib/Parse/Parser.cpp
  clang/test/Parser/altivec-bool.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102064.343641.patch
Type: text/x-patch
Size: 4189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210507/7ffdb804/attachment-0001.bin>


More information about the cfe-commits mailing list