<div dir="ltr">Hi Adam,<div>it should look for ".clang-format" from the place where you run clang-tidy. I hope it helps.</div><div><br></div><div>Piotr</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-20 13:25 GMT-07:00 Adam Cieszkiel via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px">Hello,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have a question:</div><div style="font-size:12.8px">Do you know maybe how to make clang-tidy in version 4.0 use formatting style for fixes (-fix) from .clang-format file?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I tried in many different ways but I failed.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Documentation mentions 'clang-format config file to be found' but anywhere I put it, it is still not used by clang-tidy also if I put in in location pointed by '-p' option.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><a href="http://releases.llvm.org/4.0.0/tools/clang/tools/extra/docs/clang-tidy/index.html" target="_blank">http://releases.llvm.org/4.0.0<wbr>/tools/clang/tools/extra/docs/<wbr>clang-tidy/index.html</a><br></div><div style="font-size:12.8px"><pre style="white-space:pre-wrap;overflow-x:auto;overflow-y:hidden;border-color:rgb(12,55,98);border-style:dotted;border-width:thin;margin-top:0px;margin-bottom:12px;padding:0.8em;background-color:rgb(240,240,240);color:rgb(51,51,51)"><span class="m_-4401292906132140214gmail-m_-3350798067441497022gmail-go" style="color:rgb(136,136,136)">-style=<string> -</span>
<span class="m_-4401292906132140214gmail-m_-3350798067441497022gmail-go" style="color:rgb(136,136,136)"> Fallback style for reformatting after inserting fixes</span>
<span class="m_-4401292906132140214gmail-m_-3350798067441497022gmail-go" style="color:rgb(136,136,136)"> if there is no clang-format config file found.</span></pre></div><div style="font-size:12.8px">I have no idea where I should put .clang-format file so it could be used by clang-tidy for applying clang-tidy fixes.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thank you in advance.</div></div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>