This is an archive of the discontinued LLVM Phabricator instance.

Backport changes from llvm/.clang_tidy to clang/.clang_tidy configs
ClosedPublic

Authored by ilya-biryukov on Mar 19 2018, 8:05 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ilya-biryukov created this revision.Mar 19 2018, 8:05 AM

Found by @simark while working on D44272.

simark accepted this revision.Mar 19 2018, 8:17 AM
This revision is now accepted and ready to land.Mar 19 2018, 8:17 AM
simark requested changes to this revision.Mar 19 2018, 8:46 AM
simark added inline comments.
.clang-tidy
8 ↗(On Diff #138931)

In practice, don't we use CamelCase for functions?

This revision now requires changes to proceed.Mar 19 2018, 8:46 AM
ilya-biryukov added inline comments.Mar 20 2018, 2:37 AM
.clang-tidy
8 ↗(On Diff #138931)

No, functions should be camelCase. I've seen some violations, but the style guide seems to be clear:

Function names should be verb phrases (as they represent actions), and command-like function should be imperative. The name should be camel case, and start with a lower case letter (e.g. openFile() or isFoo()).

alexfh accepted this revision.Mar 20 2018, 7:31 AM

Thanks! I don't know how useful is the support of cfe being checked out somewhere else than into llvm/tools/clang. If we could give up on that, we could just kill this file and rely on clang-tidy to pick up llvm/.clang-tidy.

Anyways, LG.

This revision was not accepted when it landed; it landed in state Needs Revision.Mar 20 2018, 7:41 AM
This revision was automatically updated to reflect the committed changes.