This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy ObjC] [1/3] New module `objc` for Objective-C checks
ClosedPublic

Authored by benhamilton on Oct 23 2017, 9:45 AM.

Details

Summary

This is part 1 of 3 of a series of changes to improve Objective-C
linting in clang-tidy.

This introduces a new clang-tidy module, objc, specifically for
Objective-C / Objective-C++ checks.

The module is currently empty; D39142 adds the first check.

Test Plan: ninja check-clang-tools

Diff Detail

Repository
rL LLVM

Event Timeline

benhamilton created this revision.Oct 23 2017, 9:45 AM
  • Add missing link lines for clang-tidy/tool and clang-tidy/plugin
  • Ensure plugin and tool actually link ObjCModule by referencing symbol
hokein accepted this revision.Oct 24 2017, 12:49 AM

Looks good from my side. I'd like to see whether @alexfh has further comments on it.

clang-tidy/objc/CMakeLists.txt
12 ↗(On Diff #119901)

Is this dependency needed?

unittests/clang-tidy/ObjCModuleTest.cpp
1 ↗(On Diff #119901)

We need the license statement for this file, I think.

This revision is now accepted and ready to land.Oct 24 2017, 12:49 AM
benhamilton marked 2 inline comments as done.
  • @hokein: Add copyright, remove unneeded dep
benhamilton added inline comments.Oct 24 2017, 9:12 AM
clang-tidy/objc/CMakeLists.txt
12 ↗(On Diff #119901)

Whoops, no. Copy-paste error.

unittests/clang-tidy/ObjCModuleTest.cpp
1 ↗(On Diff #119901)

I started with GoogleModuleTest.cpp, which is also missing the license statement. Added here.

This revision was automatically updated to reflect the committed changes.