[cfe-dev] [clang-tidy] Support for negative convention

David Côme via cfe-dev cfe-dev at lists.llvm.org
Thu Feb 28 03:21:42 PST 2019


Ok, thanks for the answers.  I'll look into it at some point in the
foreseeable future (couple of months).


David


On Wed, Feb 27, 2019 at 5:26 PM Jonas Toth <development at jonas-toth.eu>
wrote:

> Hi,
>
> `readability-identifier-naming` has only support for adding
> prefixes/postfixes at the moment. This is functionality you would need to
> implement yourself (patches welcome ;))
> It might be a good idea to allow an additional, optional configuration
> that specifies a regex names must adhere to. This would probably give a
> better experience for special demands like this.
>
> Best, Jonas
> Am 27.02.19 um 15:50 schrieb David Côme via cfe-dev:
>
> Hello,
>
> Is there a way for clang-tidy to support negative convention ?
>
> For example, I would like to forbid public members to start with an m_.
>
> I can use  key: readability-identifier-naming.PublicMemberCase,value:
> camelBack to identify such cases, but not for automatically fixing it as
> will turn a m_attr into a mAttr whereas what I want is attr.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190228/4af68fc7/attachment.html>


More information about the cfe-dev mailing list