-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle deprecated rules in ClangTidy LLVM 19.1 #2824
base: master
Are you sure you want to change the base?
Conversation
- addDeprecatedRuleKey deprecated rules: - C++14 - clang-diagnostic-c++1y-extensions -> clang-diagnostic-c++14-extensions - C++17 - clang-diagnostic-c++1z-compat -> clang-diagnostic-c++17-compat - clang-diagnostic-c++1z-compat-mangling -> clang-diagnostic-c++17-compat-mangling - clang-diagnostic-c++1z-extensions -> clang-diagnostic-c++17-extensions - C++20 - clang-diagnostic-c++2a-compat -> clang-diagnostic-c++20-compat - clang-diagnostic-c++2a-compat-pedantic -> clang-diagnostic-c++20-compat-pedantic - clang-diagnostic-c++2a-extensions -> clang-diagnostic-c++20-extensions - C++23 - clang-diagnostic-c++2b-extensions -> clang-diagnostic-c++23-extensions - clang-diagnostic-pre-c++2b-compat -> clang-diagnostic-pre-c++23-compat - clang-diagnostic-pre-c++2b-compat-pedantic -> clang-diagnostic-pre-c++23-compat-pedantic - C++26 - clang-diagnostic-c++2c-compat -> clang-diagnostic-c++26-compat - clang-diagnostic-c++2c-extensions -> clang-diagnostic-c++26-extensions - clang-diagnostic-pre-c++2c-compat -> clang-diagnostic-pre-c++26-compat - clang-diagnostic-pre-c++2c-compat-pedantic -> clang-diagnostic-pre-c++26-compat-pedantic
First try calling addDeprecatedRuleKey, starting the server I get:
|
Mark rules with status=DEPRECATED in repository, still the message during server start java.lang.IllegalStateException: The following rule keys are declared both as deprecated and used key [clangtidy:clang-diagnostic-c++1y-extensions,clangtidy:clang-diagnostic-c++2c-extensions,clangtidy:clang-diagnostic-pre-c++2c-compat-pedantic,clangtidy:clang-diagnostic-pre-c++2c-compat,clangtidy:clang-diagnostic-c++2a-compat,clangtidy:clang-diagnostic-c++1z-compat,clangtidy:clang-diagnostic-c++0x-extensions,clangtidy:clang-diagnostic-pre-c++2b-compat,clangtidy:clang-diagnostic-c++2b-extensions,clangtidy:clang-diagnostic-c++2a-extensions,clangtidy:clang-diagnostic-c++1z-extensions,clangtidy:clang-diagnostic-pre-c++2b-compat-pedantic,clangtidy:clang-diagnostic-c++0x-compat] |
Summary:
|
This change is