This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add a .clang-tidy file for the toplevel libc directory.
ClosedPublic

Authored by sivachandra on Dec 8 2021, 3:50 PM.

Details

Summary

Generation of the .yaml has been removed to prevent lint from
running with every ninja invocation. The new .clang-tidy file is copied
to the libc build directory so that generated files also get checked.

Diff Detail

Event Timeline

sivachandra created this revision.Dec 8 2021, 3:50 PM
sivachandra requested review of this revision.Dec 8 2021, 3:50 PM
michaelrj accepted this revision.Dec 8 2021, 3:58 PM

LGTM with nit

libc/.clang-tidy
17–18

nit: this should probably go above VariableIgnoredRegexp for consistency

This revision is now accepted and ready to land.Dec 8 2021, 3:58 PM

Address comment.

This revision was landed with ongoing or failed builds.Dec 8 2021, 4:19 PM
This revision was automatically updated to reflect the committed changes.