[all-commits] [llvm/llvm-project] f7dc91: [pseudo] Eliminate a false parse of structured bin...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Tue Aug 23 06:26:39 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f7dc91ad5609fab02cb805861dd232cab492340d
https://github.com/llvm/llvm-project/commit/f7dc91ad5609fab02cb805861dd232cab492340d
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2022-08-23 (Tue, 23 Aug 2022)
Changed paths:
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/structured-binding.cpp
Log Message:
-----------
[pseudo] Eliminate a false parse of structured binding declaration.
Using the guard to implement part of the rule https://eel.is/c++draft/dcl.pre#6.
```
void foo() {
// can be parsed as
// - structured-binding declaration (a false parse)
// - assignment expression
array[index] = value;
}
```
Differential Revision: https://reviews.llvm.org/D132260
More information about the All-commits
mailing list