<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>`readability-identifier-naming` has only support for adding
prefixes/postfixes at the moment. This is functionality you would
need to implement yourself (patches welcome ;))<br>
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.</p>
<p>Best, Jonas<br>
</p>
<div class="moz-cite-prefix">Am 27.02.19 um 15:50 schrieb David Côme
via cfe-dev:<br>
</div>
<blockquote type="cite"
cite="mid:CAEhubByy6L3Yt2aTnYnrS7=UoHh7E=mLTBCkv0oBrTMXhNk3DA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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>
<br>
</div>
</div>
</div>
</blockquote>
</body>
</html>