[all-commits] [llvm/llvm-project] 1d51bb: [Clang] Reword diagnostic for scope identifier wit...
Jun Zhang via All-commits
all-commits at lists.llvm.org
Mon Sep 12 07:41:54 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1d51bb824f25140a5b1aa783f6860ac3e7f7d16d
https://github.com/llvm/llvm-project/commit/1d51bb824f25140a5b1aa783f6860ac3e7f7d16d
Author: Jun Zhang <jun at junz.org>
Date: 2022-09-12 (Mon, 12 Sep 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaDecl.cpp
M clang/test/Parser/cxx1z-decomposition.cpp
M clang/test/Sema/array-init.c
A clang/test/Sema/err-decl-block-extern-no-init.c
M clang/test/Sema/private-extern.c
Log Message:
-----------
[Clang] Reword diagnostic for scope identifier with linkage
If the declaration of an identifier has block scope, and the identifier has
external or internal linkage, the declaration shall have no initializer for
the identifier.
Clang now gives a more suitable diagnosis for this case.
Fixes https://github.com/llvm/llvm-project/issues/57478
Signed-off-by: Jun Zhang <jun at junz.org>
Differential Revision: https://reviews.llvm.org/D133088
More information about the All-commits
mailing list