llvm/llvm-project

Simplify initialisation diagnostic when types are cv-qualified

Open

#73,399 建立於 2023年11月25日

在 GitHub 查看
 (5 留言) (0 反應) (2 負責人)C++ (10,782 fork)batch import
clang:diagnosticsgood first issue

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

I'd like to revise the diagnostic

error: cannot initialize a variable of type 'const icun_status' with an rvalue of type 'int'

to

error: cannot initialize a constant of type 'icun_status' with an rvalue of type 'int'

The const in this diagnostic doesn't appear to be doing much other than ensuring (unnecessary) technical accuracy. I don't think similar nouns exist for volatile and restrict don't exist: they can remain variable.

I have self-assigned, but this is a good candidate for someone looking to get started with Clang, and I'll happily hand it off in that case.

貢獻者指南