[clang-tidy] Delete obsolete objc-property-declaration options ✂️
Summary: The `Acronyms` and `IncludeDefaultAcronyms` options were deprecated in https://reviews.llvm.org/D51832. These options can be removed. Tested by running the clang-tidy tests. Reviewers: benhamilton, aaron.ballman Reviewed By: aaron.ballman Subscribers: Eugene.Zelenko, xazax.hun, cfe-commits Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D56945 llvm-svn: 351921
This commit is contained in:
parent
73078ecd38
commit
be9eca442e
|
@ -97,14 +97,6 @@ bool prefixedPropertyNameValid(llvm::StringRef PropertyName) {
|
|||
}
|
||||
} // namespace
|
||||
|
||||
PropertyDeclarationCheck::PropertyDeclarationCheck(StringRef Name,
|
||||
ClangTidyContext *Context)
|
||||
: ClangTidyCheck(Name, Context),
|
||||
SpecialAcronyms(
|
||||
utils::options::parseStringList(Options.get("Acronyms", ""))),
|
||||
IncludeDefaultAcronyms(Options.get("IncludeDefaultAcronyms", true)),
|
||||
EscapedAcronyms() {}
|
||||
|
||||
void PropertyDeclarationCheck::registerMatchers(MatchFinder *Finder) {
|
||||
// this check should only be applied to ObjC sources.
|
||||
if (!getLangOpts().ObjC) return;
|
||||
|
@ -145,12 +137,6 @@ void PropertyDeclarationCheck::check(const MatchFinder::MatchResult &Result) {
|
|||
<< generateFixItHint(MatchedDecl, StandardProperty);
|
||||
}
|
||||
|
||||
void PropertyDeclarationCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
|
||||
Options.store(Opts, "Acronyms",
|
||||
utils::options::serializeStringList(SpecialAcronyms));
|
||||
Options.store(Opts, "IncludeDefaultAcronyms", IncludeDefaultAcronyms);
|
||||
}
|
||||
|
||||
} // namespace objc
|
||||
} // namespace tidy
|
||||
} // namespace clang
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_OBJC_PROPERTY_DECLARATION_H
|
||||
|
||||
#include "../ClangTidy.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace clang {
|
||||
namespace tidy {
|
||||
|
@ -27,15 +25,10 @@ namespace objc {
|
|||
/// http://clang.llvm.org/extra/clang-tidy/checks/objc-property-declaration.html
|
||||
class PropertyDeclarationCheck : public ClangTidyCheck {
|
||||
public:
|
||||
PropertyDeclarationCheck(StringRef Name, ClangTidyContext *Context);
|
||||
PropertyDeclarationCheck(StringRef Name, ClangTidyContext *Context)
|
||||
: ClangTidyCheck(Name, Context) {}
|
||||
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
|
||||
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
|
||||
void storeOptions(ClangTidyOptions::OptionMap &Options) override;
|
||||
|
||||
private:
|
||||
const std::vector<std::string> SpecialAcronyms;
|
||||
const bool IncludeDefaultAcronyms;
|
||||
std::vector<std::string> EscapedAcronyms;
|
||||
};
|
||||
|
||||
} // namespace objc
|
||||
|
|
|
@ -73,6 +73,10 @@ Improvements to clang-tidy
|
|||
Checks for casts of ``absl::Duration`` conversion functions, and recommends
|
||||
the right conversion function instead.
|
||||
|
||||
- The :option:`Acronyms` and :option:`IncludeDefaultAcronyms` options for the
|
||||
:doc:`objc-property-declaration <clang-tidy/checks/objc-property-declaration>`
|
||||
check have been removed.
|
||||
|
||||
Improvements to include-fixer
|
||||
-----------------------------
|
||||
|
||||
|
|
|
@ -40,15 +40,3 @@ lowercase letters followed by a '_' to avoid naming conflict. For example:
|
|||
@property(nonatomic, assign) int abc_lowerCamelCase;
|
||||
|
||||
The corresponding style rule: https://developer.apple.com/library/content/qa/qa1908/_index.html
|
||||
|
||||
|
||||
Options
|
||||
-------
|
||||
|
||||
.. option:: Acronyms
|
||||
|
||||
This option is deprecated and ignored.
|
||||
|
||||
.. option:: IncludeDefaultAcronyms
|
||||
|
||||
This option is deprecated and ignored.
|
||||
|
|
Loading…
Reference in New Issue