[all-commits] [llvm/llvm-project] 625acd: [Parser] Improve diagnostic and error recovery whe...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Wed Apr 8 06:15:46 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 625acd8f6847a156b236b8f11b4b02b11cac3766
https://github.com/llvm/llvm-project/commit/625acd8f6847a156b236b8f11b4b02b11cac3766
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2020-04-08 (Wed, 08 Apr 2020)
Changed paths:
M clang/include/clang/Basic/DiagnosticParseKinds.td
M clang/lib/Parse/ParseDecl.cpp
A clang/test/Parser/cxx-keyword-identifiers.cpp
Log Message:
-----------
[Parser] Improve diagnostic and error recovery when C++ keywords are used as identifiers.
Summary:
Previously, clang emitted a less-usefull diagnostic and didnt recover
well when the keywords is used as identifier in function paramter.
```
void foo(int case, int x); // previously we drop all parameters after
`int case`.
```
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D77633
More information about the All-commits
mailing list