This is an archive of the discontinued LLVM Phabricator instance.

clang-tidy: Don't repeat list of all checks in three places.
ClosedPublic

Authored by thakis on Sep 27 2019, 5:45 AM.

Details

Summary

Instead, put all checks in a cmake variable and reference this.

Also, make clangd use the the ClangTidyForceLinker.h header instead
of duplicating the list of modules -- the duplicate copy was missing
the new "darwin" checker added in r373065.

Diff Detail

Repository
rL LLVM

Event Timeline

thakis created this revision.Sep 27 2019, 5:45 AM
gribozavr accepted this revision.Sep 27 2019, 5:49 AM
This revision is now accepted and ready to land.Sep 27 2019, 5:49 AM

Thanks! I'll land this, but beanz, if the cmake setup here is weird please shout and I'll try to make it less weird. We have a few other instances of PARENT_SCOPE variables, so maybe this is how cmake likes to do "group of libraries".

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2019, 5:55 AM