Open marcin-szmagara opened 2 years ago
Consider following c++20 code:
c++20
template <template <typename> typename T> constexpr bool always_true = true; template <typename T> using change_to_camel_case = void; int main() { always_true<change_to_camel_case>; }
and following .clang-tidy config file:
.clang-tidy
--- Checks: '-*, readability-identifier-naming' FormatStyle: file CheckOptions: - { key: readability-identifier-naming.TypeAliasCase, value: CamelCase } ...
Both clang-tidy with --fix option and clangd using code-actions, rename the type alias at it's definition, but not at it's usage. In other words, the output file is:
clang-tidy
--fix
clangd
template <template <typename> typename T> constexpr bool always_true = true; template <typename T> using ChangeToCamelCase = void; int main() { always_true<change_to_camel_case>; }
@llvm/issue-subscribers-clang-tidy
Consider following
c++20
code:and following
.clang-tidy
config file:Both
clang-tidy
with--fix
option andclangd
using code-actions, rename the type alias at it's definition, but not at it's usage. In other words, the output file is: