зеркало из https://github.com/microsoft/clang-1.git
Apply Jonathan Sauer's proposed solution to PR9519. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128075 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
e81ac69c5d
Коммит
850d3b304b
|
@ -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() {}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче