<div dir="ltr"><div dir="ltr">First, let me move this over to cfe-dev -- that's where the clang-tidy developers hang out. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 5, 2019 at 4:00 PM martin lampacher <<a href="mailto:lmapii@googlemail.com">lmapii@googlemail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hello Don,<div><br></div><div>thanks a bunch for the reply! Yeah I was looking deeper into it - and it makes sense. Apart from naming lot of the checks do require the actual build/AST. I'm working on that now - compiledb might just do what I need otherwise building the file should not be a major problem.</div><div><br></div><div>Am I correct in assuming that the compile database should contain _all_ the files that are required for a build, whereas I can still run clang-tidy on a per-file basis? We have loads of third-party code that needs to be configured and compiled into our projects but must not be modified (safety project).</div></div></blockquote><div><br></div><div>I'm not sure exactly how cmake decides what to include in the compilation database, but I'd assume it includes anything that clang compiles, which is all you're concerned with. As for 3rd party code, you can pick up the headers automatically (please see --header-filter=), but if you want the c/cpp files, you need to do each project individually. Just try a few, and you'll figure it out pretty quickly.</div><div><br></div><div>hth...</div><div>don</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div>I hope it is o.k. if I'm continuing to post here. It's hard to find references on the web for this kinda edge-case, otherwise just let me know :)</div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><br></div><div>Cheers.M<br><div><br><blockquote type="cite"><div>On 5 Jul 2019, at 19:13, Don Hinton <<a href="mailto:hintonda@gmail.com" target="_blank">hintonda@gmail.com</a>> wrote:</div><br class="gmail-m_-6848810289079390123Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr">Hi Martin:<div><br></div><div>Clang-tidy works on the AST, so you have to be able to compile the program and produce a valid AST for it to do anything useful.</div><div><br></div><div>Here are a few things you can try:</div><div><br></div><div>1)<font face="arial, sans-serif" style="background-color:rgb(255,255,255)"> Don't pass -D<span style="font-style:inherit;font-variant-caps:inherit;white-space:inherit">CMAKE_EXPORT_COMPILE_</span><span style="font-style:inherit;font-variant-caps:inherit;white-space:inherit">COMMANDS=On to clang-tidy:</span></font></div><div><font face="arial, sans-serif" style="background-color:rgb(255,255,255)"><span style="font-style:inherit;font-variant-caps:inherit;white-space:inherit"> This only works when passed to cmake when generating build files, e.g., Makefiles. So if you aren't using cmake, you'll need to generate the compilation database yourself. Google for it, and you'll find a bunch of links, but here's a couple that might be useful (note I haven't used them):</span></font></div><div><font face="arial, sans-serif" style="background-color:rgb(255,255,255)"><span style="font-style:inherit;font-variant-caps:inherit;white-space:inherit"><br></span></font></div><div> <a href="https://clang.llvm.org/docs/JSONCompilationDatabase.html" target="_blank">https://clang.llvm.org/docs/JSONCompilationDatabase.html</a><font face="arial, sans-serif" style="background-color:rgb(255,255,255)"><span style="font-style:inherit;font-variant-caps:inherit;white-space:inherit"><br></span></font></div><div> <a href="https://github.com/nickdiego/compiledb" target="_blank">https://github.com/nickdiego/compiledb</a><br></div><div><br></div><div> Then use the -p flag to help clang-tidy find and use it -- it's just a json file.</div><div><br></div><div>2) You can also pass additional flags after the --, e.g., -I, etc. if needed.</div><div><br></div><div>hth...</div><div>don</div><div> </div><div><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 3, 2019 at 6:11 PM martin lampacher via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hello,<div><br></div><div>sorry for posting this here but I'm kind of stuck. I'm trying to introduce LLVM tooling step by step at the company I'm working for. So far I'm using clang-format for automated formatting.</div><div><br></div><div>Since I'm also working on the coding guideline I wanted to use clang-tidy for enforcing the naming convention. The problem is that we're using a plain old MAKE project, so I can't really benefit from the CMAKE integration.</div><div><br></div><div>The idea was to simply run clang-format and clang-tidy alongside the normal MAKE process, it's quite easy to integrate into the ruleset.</div><div><br></div><div>With clang-tidy I have the problem that it is trying to do "to much". So even if I'm disabling all rules but '<span style="color:rgb(36,39,41);font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;white-space:pre-wrap;background-color:rgb(239,240,241)">readability-identifier-naming</span> ' the tool will still execute clang-diagnostic-error checks.</div><div><br></div><div>Full example:</div><div><br></div><div><p style="margin:0px 0px 1em;padding:0px;border:0px;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-stretch:inherit;line-height:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)"><strong style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">dummy.c</strong></p><pre class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613lang-c gmail-m_-6848810289079390123gmail-m_-3775001410100602613prettyprint gmail-m_-6848810289079390123gmail-m_-3775001410100602613prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-stretch:inherit;line-height:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);border-radius:3px;color:rgb(57,51,24)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;white-space:inherit"><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613com" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(133,140,147)">#include</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> </span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613str" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(125,39,39)">"dummy.h"</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">
</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613com" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(133,140,147)">#include</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> </span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613str" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(125,39,39)">"MISSING_module.h"</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">
</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613com" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(133,140,147)">// EOF</span></code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-stretch:inherit;line-height:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41)"><strong style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">dummy.h</strong></p><pre class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613lang-c gmail-m_-6848810289079390123gmail-m_-3775001410100602613prettyprint gmail-m_-6848810289079390123gmail-m_-3775001410100602613prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-stretch:inherit;line-height:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);border-radius:3px;color:rgb(57,51,24)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;white-space:inherit"><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613com" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(133,140,147)">#ifndef</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> _DUMMY_H_
</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613com" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(133,140,147)">#define</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> _DUMMY_H_
</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613com" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(133,140,147)">#include</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> </span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613str" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(125,39,39)"><stdlib.h></span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">
</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613com" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(133,140,147)">// EOF</span></code></pre><div>I'm trying to execute the following command (macos)</div></div><div><br></div><div><pre class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613lang-c gmail-m_-6848810289079390123gmail-m_-3775001410100602613prettyprint gmail-m_-6848810289079390123gmail-m_-3775001410100602613prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-stretch:inherit;line-height:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);border-radius:3px;color:rgb(57,51,24)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;white-space:inherit"><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">clang</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">-</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">tidy dummy</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">.</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">c </span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">-</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">checks</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">=</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613str" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(125,39,39)">'-*,readability-identifier-naming'</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> </span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">--</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> </span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">-</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">DCMAKE_EXPORT_COMPILE_COMMANDS</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">=</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">ON</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">`</span></code></pre></div><div>however, clang-tidy is still checking/following the includes (one of which doesn't even exist - but I'm just using it for naming convention checks), I get the following error message:</div><div><br></div><div><pre class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613lang-c gmail-m_-6848810289079390123gmail-m_-3775001410100602613prettyprint gmail-m_-6848810289079390123gmail-m_-3775001410100602613prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-stretch:inherit;line-height:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);border-radius:3px;color:rgb(57,51,24)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;white-space:inherit"><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">dummy</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">.</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">h</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">:</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613lit" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(125,39,39)">4</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">:</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613lit" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(125,39,39)">10</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">:</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> error</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">:</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> </span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613str" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(125,39,39)">'stdlib.h'</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> file not found </span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">[</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">clang</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">-</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">diagnostic</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">-</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">error</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">]</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">
</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613com" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(133,140,147)">#include</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> </span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613str" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(125,39,39)"><stdlib.h></span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">
</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">^</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">
</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613typ" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(43,145,175)">Found</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)"> compiler error</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">(</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pln" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">s</span><span class="gmail-m_-6848810289079390123gmail-m_-3775001410100602613pun" style="margin:0px;padding:0px;border:0px;font-family:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(48,51,54)">).</span></code></pre><div>Is there any way to disable the clang-diagnostic rules?</div></div><div><br></div><div>Cheers,</div><div>Martin</div><div><br></div><div><br></div><div><br></div><div><br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>
</div></blockquote></div><br></div></div></blockquote></div></div>