[clang] [clang][Sema] Simplify err_init_conversion_failed diagnostic message for const variables (PR #82109)

2024-02-26 Thread Artem Tyurin via cfe-commits
agentcooper wrote: @cjdb Hey Christopher, I'm curious to hear your thoughts on this change. https://github.com/llvm/llvm-project/pull/82109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [clang][Sema] Simplify err_init_conversion_failed diagnostic message for const variables (PR #82109)

2024-02-17 Thread Artem Tyurin via cfe-commits
https://github.com/agentcooper created https://github.com/llvm/llvm-project/pull/82109 Fixes #73399. I initially tried to create a new `EntityKind` enum case to represent constants as it makes it easier to use `Entity.getKind()` with the diagnostic message. But in the end I've decided against