[all-commits] [llvm/llvm-project] 8fa168: Parse vector bool when stdbool.h and altivec.h are...

Zarko Todorovski via All-commits all-commits at lists.llvm.org
Thu May 13 08:48:54 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8fa168fc50ba4f63b79773c947ef5b3e43d5c02f
      https://github.com/llvm/llvm-project/commit/8fa168fc50ba4f63b79773c947ef5b3e43d5c02f
  Author: Zarko Todorovski <zarko at ca.ibm.com>
  Date:   2021-05-13 (Thu, 13 May 2021)

  Changed paths:
    M clang/include/clang/Parse/Parser.h
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Parse/Parser.cpp
    A clang/test/Parser/altivec-zvector-bool.c

  Log Message:
  -----------
  Parse vector bool when stdbool.h and altivec.h are included

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

Reviewed By: hubert.reinterpretcast, Everybody0523

Differential Revision: https://reviews.llvm.org/D102064




More information about the All-commits mailing list