Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Qt Creator 7.0.0
-
None
-
Kubuntu 21.10 x86-64
Description
In the following code piece, my_const is not highlighted as a global constant (as my_global_const). It is also not colored as a non-static data member.
struct my_struct { unsigned int my_var = 0u; static constexpr unsigned int my_const = 1u; }; static constexpr unsigned int my_global_const = 2u;
This is with clangd enabled. With clangd disabled, my_const and my_global_const are both colored the same way, as namespace-scope variables, which is the expected behavior.