<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transational//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
</HEAD>
<BODY>Hello David,<div><br></div><div>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.</div><div><br></div><div>--- </div><div>Loïc</div><div><br><br><br>---- Message d'origine ----<br>
De : "David Côme via cfe-dev" <cfe-dev@lists.llvm.org><br>
À : cfe-dev@lists.llvm.org<br>
Objet : [cfe-dev] [clang-tidy] Support for negative convention<br>
Date : 27/02/2019 15:50:01 CET<br>
<br>
<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>Is there a way for clang-tidy to support negative convention ?</div><div><br></div><div>For example, I would like to forbid public members to start with an m_.</div><div><br></div><div>I can use  <span style="font-family:monospace,monospace;">key: readability-identifier-naming.PublicMemberCase,value</span>: camelBack to identify such cases, but not for automatically fixing it as  will turn a <span style="font-family:monospace,monospace;">m_attr </span>into a <span style="font-family:monospace,monospace;">mAttr</span> whereas what I want is <span style="font-family:monospace,monospace;">attr</span>. <br></div><div><br></div><div>Any help appreciated.</div><div><br></div><div>Regards,</div><div>David Come<br></div><div><br></div><div><br></div></div></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
cfe-dev@lists.llvm.org<br>
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br></div></BODY></HTML>