forked from OSchip/llvm-project
Apply Jonathan Sauer's proposed solution to PR9519. Thanks!
llvm-svn: 128075
This commit is contained in:
parent
6a4fa52b37
commit
30cd20a316
|
@ -5513,7 +5513,7 @@ static bool ShouldWarnAboutMissingPrototype(const FunctionDecl *FD) {
|
|||
return false;
|
||||
|
||||
// Don't warn about inline functions.
|
||||
if (FD->isInlineSpecified())
|
||||
if (FD->isInlined())
|
||||
return false;
|
||||
|
||||
// Don't warn about function templates.
|
||||
|
|
|
@ -24,3 +24,9 @@ template<typename> void h() { }
|
|||
|
||||
// Don't warn when instantiating function templates.
|
||||
template void h<int>();
|
||||
|
||||
// PR9519: don't warn about friend functions.
|
||||
class I {
|
||||
friend void I_friend() {}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue