<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Hi,<br></div>
<div> </div>
<div>So I've implemented a new warning in clang, but now the test Misc/warning-flags.c is failing: I need to introduce a flag corresponding to this warning.<br></div>
<div> </div>
<div>This is about how my warning looks like in DiagnosticSemaKinds.td:<br></div>
<div> </div>
<blockquote><div>def warn_my_first_warning: Warning<<br></div>
<div> "something is wrong here">,<br></div>
<div> InGroup<MyFirstWarning>;<br></div>
</blockquote><div> </div>
<div>And I've created a corresponding group in DiagnosticGroups.td:<br></div>
<div> </div>
<blockquote><div>def MyFirstWarning: DiagGroup<"my-first-warning">;<br></div>
<div> </div>
<div>def MyWarnings : DiagGroup<"my", [MyFirstWarning]>;<br></div>
</blockquote><div> </div>
<div>But this does not seem to have fixed the issue, I still see my warning in the output of diagtool in the "Warnings without flags" list.<br></div>
<div> </div>
<div>I couldn't find any relating information in the clang documentation. Any help would be appreciated.<br></div>
<div> </div>
<div id="sig19426269"><div class="signature">---<br></div>
<div class="signature">Best regards,<br></div>
<div class="signature"> </div>
<div class="signature">Gábor 'ShdNx' Kozár<br></div>
<div class="signature"><a href="http://gaborkozar.me">http://gaborkozar.me</a><br></div>
<div class="signature"> </div>
</div>
<div> </div>
</body>
</html>