<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 11, 2015 at 10:21 AM, Alexander Kornienko <span dir="ltr"><<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Mar 11, 2015 at 5:57 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Wed, Mar 11, 2015 at 9:47 AM, Alexander Kornienko <span dir="ltr"><<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: alexfh<br>
Date: Wed Mar 11 11:47:27 2015<br>
New Revision: 231938<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=231938&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=231938&view=rev</a><br>
Log:<br>
[clang-tidy] Clean up misc-use-override warning. NFC<br>
<br>
Modified:<br>
clang-tools-extra/trunk/clang-tidy/ClangTidy.h<br>
<br>
Modified: clang-tools-extra/trunk/clang-tidy/ClangTidy.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidy.h?rev=231938&r1=231937&r2=231938&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidy.h?rev=231938&r1=231937&r2=231938&view=diff</a><br>
==============================================================================<br>
--- clang-tools-extra/trunk/clang-tidy/ClangTidy.h (original)<br>
+++ clang-tools-extra/trunk/clang-tidy/ClangTidy.h Wed Mar 11 11:47:27 2015<br>
@@ -113,7 +113,7 @@ public:<br>
assert(!CheckName.empty());<br>
}<br>
<br>
- virtual ~ClangTidyCheck() {}<br>
+ ~ClangTidyCheck() override = default;<br></blockquote></span><div><br>Just remove this, then - since it's the implicit default anyway?<br></div></div></div></div></blockquote><div><br></div></span><div>I didn't want to rely on the implementation (that the class derives from another class that has a virtual destructor). Or would I get a warning in case I removed the inheritance?</div></div></div></div></blockquote><div><br>If this type has virtual functions and a public non-virtual dtor and is not itself final, you'd get a warning.<br> </div></div><br></div></div>