[all-commits] [llvm/llvm-project] d489b3: [pseudo] Implement a guard to determine function d...

Haojian Wu via All-commits all-commits at lists.llvm.org
Tue Jul 19 00:49:37 PDT 2022


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

  Changed paths:
    M clang-tools-extra/pseudo/lib/cxx/CXX.cpp
    M clang-tools-extra/pseudo/lib/cxx/cxx.bnf
    M clang-tools-extra/pseudo/test/cxx/declarator-function.cpp
    M clang-tools-extra/pseudo/test/cxx/declarator-var.cpp
    M clang-tools-extra/pseudo/test/cxx/recovery-func-parameters.cpp
    M clang-tools-extra/pseudo/test/cxx/recovery-init-list.cpp
    M clang-tools-extra/pseudo/test/glr.cpp

  Log Message:
  -----------
  [pseudo] Implement a guard to determine function declarator.

This eliminates some simple-declaration/function-definition false
parses.

- implement a function to determine whether a declarator ForestNode is a
  function declarator;
- extend the standard declarator to two guarded function-declarator and
  non-function-declarator nonterminals;

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




More information about the All-commits mailing list