]> granicus.if.org Git - clang/commit
-Wmicrosoft: Don't warn on non-inline pure virtual method definitions
authorReid Kleckner <reid@kleckner.net>
Tue, 8 Oct 2013 22:45:29 +0000 (22:45 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 8 Oct 2013 22:45:29 +0000 (22:45 +0000)
commit5dbed6674bda07dd147183932bc843c52205633f
tree8ee338418422caa0598e1cdb49fcd744096b2652
parent3cb333070d35c9a6843e4211c9a74322f6c126ec
-Wmicrosoft: Don't warn on non-inline pure virtual method definitions

MSVC and clang with -fms-extensions allow pure virtual methods to be
defined inline after the "= 0" tokens.  Clang warns on these because it
is not standard, but incorrectly warns on out-of-line definitions, which
are standard.

With this change, clang will only warn on inline definitions of pure
virtual methods.

Fixes some self-host warnings on out-of-line definitions of pure virtual
destructors.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192244 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Parser/MicrosoftExtensions.cpp