[PATCH] D75569: New ClangTidy check for methods marked __attribute__((unavailable)) that do not override a method from a superclass.

Michael Wyman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 3 15:00:32 PST 2020


mwyman created this revision.
Herald added subscribers: cfe-commits, mgorny.
Herald added a project: clang.

Such method declarations don't provide any benefit, as even without the declaration the compiler would complain about calling the method as it doesn't exist.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75569

Files:
  clang-tools-extra/clang-tidy/objc/CMakeLists.txt
  clang-tools-extra/clang-tidy/objc/MethodUnavailableNotOverrideCheck.cpp
  clang-tools-extra/clang-tidy/objc/MethodUnavailableNotOverrideCheck.h
  clang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/docs/clang-tidy/checks/objc-method-unavailable-not-override.rst
  clang-tools-extra/test/clang-tidy/checkers/objc-method-unavailable-not-override.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75569.248037.patch
Type: text/x-patch
Size: 10013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200303/47fa00b4/attachment-0001.bin>


More information about the cfe-commits mailing list