Fix the diagnostic about attribute placement for scoped enumerations
authoripriyanshi1708 <priyanshiagarwal1708@gmail.com>
Wed, 26 Apr 2023 19:18:40 +0000 (15:18 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 26 Apr 2023 19:18:40 +0000 (15:18 -0400)
commitb893368fd4fdf40b7778df8d0b17312def1a8156
tree6c630f36ca8f067d8fc83860b14f1a273bc5aece
parent5b303f21d38b211341537b94a4783ed9975d6bb1
Fix the diagnostic about attribute placement for scoped enumerations

Fixed the error message for attribute placement. Earlier it was showing
'place it after "enum"' but it should be 'place it after "enum class"'
which I have fixed in this patch.

Fixes https://github.com/llvm/llvm-project/issues/61660
Differential Revision: https://reviews.llvm.org/D147989
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/attr-declspec-ignored.cpp