[all-commits] [llvm/llvm-project] 2a88fb: [pseudo] Eliminate the dangling-else syntax ambigu...

Haojian Wu via All-commits all-commits at lists.llvm.org
Fri Jul 22 00:13:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a88fb2ecb72300bfbbc74c586fb415cc18c9f9d
      https://github.com/llvm/llvm-project/commit/2a88fb2ecb72300bfbbc74c586fb415cc18c9f9d
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    M clang-tools-extra/pseudo/include/clang-pseudo/Language.h
    M clang-tools-extra/pseudo/lib/GLR.cpp
    M clang-tools-extra/pseudo/lib/cxx/CXX.cpp
    M clang-tools-extra/pseudo/lib/cxx/cxx.bnf
    A clang-tools-extra/pseudo/test/cxx/dangling-else.cpp
    M clang-tools-extra/pseudo/unittests/GLRTest.cpp

  Log Message:
  -----------
  [pseudo] Eliminate the dangling-else syntax ambiguity.

- the grammar ambiguity is eliminated by a guard;
- modify the guard function signatures, now all parameters are folded in
  to a single object, avoid a long parameter list (as we will add more
  parameters in the near future);

Reviewed By: sammccall

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




More information about the All-commits mailing list