<div dir="ltr">gcc's Woverloaded-virtual is known noisy. I'd prefer disabling it under gcc (not under clang though).<br></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jul 8, 2018 at 5:08 AM Kim Gräsman via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
We have a buildbot for IWYU running an Ubuntu 16.04 setup with GCC 5.1<br>
(I think) and on my local Linux box I have GCC 7.2.<br>
<br>
Both setups produce warnings when building Clang -- nothing that<br>
appears to be a problem, but it's nagging me that the build isn't<br>
clean:<br>
<br>
# GCC 7.2<br>
llvm/include/llvm/Support/Errno.h:34:13: warning: mangled name for<br>
‘decltype (F(llvm::sys::RetryAfterSignal::As ...))<br>
llvm::sys::RetryAfterSignal(const FailT&, const Fun&, const Args& ...)<br>
[with FailT = int; Fun = int(int, stat*) throw (); Args = {int,<br>
stat*}]’ will change in C++17 because the exception specification is<br>
part of a function type [-Wnoexcept-type]<br>
 inline auto RetryAfterSignal(const FailT &Fail, const Fun &F,<br>
             ^~~~~~~~~~~~~~~~<br>
llvm/include/llvm/ADT/STLExtras.h:908:6: warning: mangled name for<br>
‘bool llvm::all_of(R&&, UnaryPredicate) [with R = llvm::StringRef&;<br>
UnaryPredicate = int (*)(int) throw ()]’ will change in C++17 because<br>
the exception specification is part of a function type<br>
[-Wnoexcept-type]<br>
 bool all_of(R &&Range, UnaryPredicate P) {<br>
<br>
# GCC 5.1<br>
llvm/tools/clang/lib/CodeGen/CGObjCGNU.cpp:589:16: warning: ‘virtual<br>
llvm::Value* {anonymous}::CGObjCGNU::GetSelector(clang::CodeGen::CodeGenFunction&,<br>
const clang::ObjCMethodDecl*)’ was hidden [-Woverloaded-virtual]<br>
llvm/tools/clang/lib/CodeGen/CGObjCGNU.cpp:1345:16: warning:   by<br>
‘virtual llvm::Value*<br>
{anonymous}::CGObjCGNUstep2::GetSelector(clang::CodeGen::CodeGenFunction&,<br>
clang::Selector, const string&)’ [-Woverloaded-virtual]<br>
llvm/tools/clang/lib/CodeGen/CGObjCGNU.cpp:587:16: warning: ‘virtual<br>
llvm::Value* {anonymous}::CGObjCGNU::GetSelector(clang::CodeGen::CodeGenFunction&,<br>
clang::Selector)’ was hidden [-Woverloaded-virtual]<br>
llvm/tools/clang/lib/CodeGen/CGObjCGNU.cpp:1345:16: warning:   by<br>
‘virtual llvm::Value*<br>
{anonymous}::CGObjCGNUstep2::GetSelector(clang::CodeGen::CodeGenFunction&,<br>
clang::Selector, const string&)’ [-Woverloaded-virtual]<br>
<br>
Would you consider patches for disabling -Wnoexcept-type and renaming<br>
one of the GetSelector member functions?<br>
<br>
Cheers,<br>
- Kim<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">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/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>