[PATCH] [clang-tidy] Add new IdentifierCase check.

Beren Minor beren.minor at gmail.com
Sat Jun 27 03:01:59 PDT 2015


Hello,

I have implemented a new check for clang-tidy, that some people might find
useful
and I would like to offer it for upstream integration. I'm not sure how I
should proceed,
so please tell me if this is not the right way to do.

This check will try to enforce coding guidelines on the identifiers casing.
It supports lower_case, UPPER_CASE, camelBack and CamelCase casing and
tries to convert from one to another if a mismatch is detected.

It also supports a fixed prefix and suffix that will be prepended or
appended
to the identifiers, regardless of the casing.

Many configuration options are available, in order to be able to create
different rules for different kind of identifier. In general, the
rules are falling back to a more generic rule if the specific case is not
configured.

Best,
--
Beren Minor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150627/55f2c450/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-clang-tidy-Add-new-IdentifierCase-check.patch
Type: text/x-patch
Size: 40408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150627/55f2c450/attachment.bin>


More information about the cfe-commits mailing list