[all-commits] [llvm/llvm-project] 136ced: When vector is found as a type or non-type id, che...

jamieschmeiser via All-commits all-commits at lists.llvm.org
Thu May 20 09:39:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 136ced498ba84f6b6126051626e319f18ba740f5
      https://github.com/llvm/llvm-project/commit/136ced498ba84f6b6126051626e319f18ba740f5
  Author: Jamie Schmeiser <schmeise at ca.ibm.com>
  Date:   2021-05-20 (Thu, 20 May 2021)

  Changed paths:
    M clang/lib/Parse/Parser.cpp
    A clang/test/Parser/altivec-non-type-vector.c
    A clang/test/Parser/altivec-template-vector.cpp
    A clang/test/Parser/altivec-typedef-vector.c

  Log Message:
  -----------
  When vector is found as a type or non-type id, check if it is really the altivec vector token.

Summary:
Call TryAltiVecVectorToken when an identifier is seen in the parser before
annotating the token.  This checks the next token where necessary to ensure
that vector is properly handled as the altivec token.

Author: Jamie Schmeiser <schmeise at ca.ibm.com>
Reviewed By: ZarkoCA (Zarko Todorovski)
Differential Revision: https://reviews.llvm.org/D100991




More information about the All-commits mailing list