]> granicus.if.org Git - clang/commit
If a replaceable global operator new/delete is marked inline, don't warn if
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 16 Nov 2013 01:57:09 +0000 (01:57 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 16 Nov 2013 01:57:09 +0000 (01:57 +0000)
commitcf19e5bad3efe2c7efa886e984988ea21825c45d
tree47c72e0261bc5295fc46cd64b0fcb064b5b99080
parent9571ab16538ea5fb8b405b74a1683b5c5880637c
If a replaceable global operator new/delete is marked inline, don't warn if
it's also __attribute__((used)), since that undoes the problematic part of
'inline'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194916 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/new-delete.cpp