mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
[clang-tidy] Remove AnalyzeTemporaryDestructors configuration option
Since it was deprecated since clang-tidy 16. Fixes #62020 Differential Revision: https://reviews.llvm.org/D156303
This commit is contained in:
parent
378fcbf20f
commit
b7c6b39651
@ -157,14 +157,12 @@ static void mapChecks(IO &IO, std::optional<std::string> &Checks) {
|
||||
|
||||
template <> struct MappingTraits<ClangTidyOptions> {
|
||||
static void mapping(IO &IO, ClangTidyOptions &Options) {
|
||||
bool Ignored = false;
|
||||
mapChecks(IO, Options.Checks);
|
||||
IO.mapOptional("WarningsAsErrors", Options.WarningsAsErrors);
|
||||
IO.mapOptional("HeaderFileExtensions", Options.HeaderFileExtensions);
|
||||
IO.mapOptional("ImplementationFileExtensions",
|
||||
Options.ImplementationFileExtensions);
|
||||
IO.mapOptional("HeaderFilterRegex", Options.HeaderFilterRegex);
|
||||
IO.mapOptional("AnalyzeTemporaryDtors", Ignored); // deprecated
|
||||
IO.mapOptional("FormatStyle", Options.FormatStyle);
|
||||
IO.mapOptional("User", Options.User);
|
||||
IO.mapOptional("CheckOptions", Options.CheckOptions);
|
||||
|
@ -108,6 +108,9 @@ Improvements to clang-tidy
|
||||
functionality using the newly added command line option
|
||||
`--enable-module-headers-parsing`.
|
||||
|
||||
- Remove configuration option `AnalyzeTemporaryDestructors`, which was deprecated since
|
||||
:program:`clang-tidy` 16.
|
||||
|
||||
New checks
|
||||
^^^^^^^^^^
|
||||
|
||||
|
@ -81,7 +81,6 @@ TEST(ParseConfiguration, ValidConfiguration) {
|
||||
"HeaderFileExtensions: [\"\",\"h\",\"hh\",\"hpp\",\"hxx\"]\n"
|
||||
"ImplementationFileExtensions: [\"c\",\"cc\",\"cpp\",\"cxx\"]\n"
|
||||
"HeaderFilterRegex: \".*\"\n"
|
||||
"AnalyzeTemporaryDtors: true\n"
|
||||
"User: some.user",
|
||||
"Options"));
|
||||
EXPECT_TRUE(!!Options);
|
||||
@ -115,7 +114,6 @@ TEST(ParseConfiguration, MergeConfigurations) {
|
||||
HeaderFileExtensions: ["h","hh"]
|
||||
ImplementationFileExtensions: ["c","cc"]
|
||||
HeaderFilterRegex: "filter1"
|
||||
AnalyzeTemporaryDtors: true
|
||||
User: user1
|
||||
ExtraArgs: ['arg1', 'arg2']
|
||||
ExtraArgsBefore: ['arg-before1', 'arg-before2']
|
||||
@ -130,7 +128,6 @@ TEST(ParseConfiguration, MergeConfigurations) {
|
||||
HeaderFileExtensions: ["hpp","hxx"]
|
||||
ImplementationFileExtensions: ["cpp","cxx"]
|
||||
HeaderFilterRegex: "filter2"
|
||||
AnalyzeTemporaryDtors: false
|
||||
User: user2
|
||||
ExtraArgs: ['arg3', 'arg4']
|
||||
ExtraArgsBefore: ['arg-before3', 'arg-before4']
|
||||
|
Loading…
Reference in New Issue
Block a user