[all-commits] [llvm/llvm-project] ab4c22: [Concepts] Improve diagnostics on a missing 'auto'...
Erich Keane via All-commits
all-commits at lists.llvm.org
Tue Nov 1 11:40:01 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ab4c22e2b735c839c667e08be303f7f8cef3ccf6
https://github.com/llvm/llvm-project/commit/ab4c22e2b735c839c667e08be303f7f8cef3ccf6
Author: Erich Keane <erich.keane at intel.com>
Date: 2022-11-01 (Tue, 01 Nov 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Parse/ParseDecl.cpp
M clang/lib/Parse/ParseTentative.cpp
M clang/test/Parser/cxx2a-placeholder-type-constraint.cpp
M clang/test/SemaTemplate/concepts.cpp
Log Message:
-----------
[Concepts] Improve diagnostics on a missing 'auto' keyword.
As reported in https://github.com/llvm/llvm-project/issues/49192,
we did a pretty poor job diagnosing cases where someone forgot 'auto', a
nd is probably in the middle of a variable declaration. This patch
makes us properly diagnose in cases where the next token is a reference,
or CVR qualifier.
More information about the All-commits
mailing list