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

via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 27 07:37:04 PST 2019


Hello David,


You can create your own checker to do that. It's really not very complicated for a simple naming convention like this one. You may want to look at https://www.youtube.com/watch?v=WwViXLNPGkY, it's a talk (in French, but I know it's not an issue for you) about this subject that was given during a meetup not long ago.



--- 

Loïc




---- Message d'origine ----
De : "David Côme via cfe-dev" <cfe-dev at lists.llvm.org>
À : cfe-dev at lists.llvm.org
Objet : [cfe-dev] [clang-tidy] Support for negative convention
Date : 27/02/2019 15:50:01 CET

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. 



Any help appreciated.



Regards,

David Come








_______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190227/97e06be7/attachment.html>


More information about the cfe-dev mailing list