зеркало из https://github.com/microsoft/clang-1.git
Add support for the cleanup attribute for C++; we don't have to copy
all of g++'s bugs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90924 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
43c79c2b07
Коммит
b89192151e
|
@ -1058,10 +1058,6 @@ static void HandlePureAttr(Decl *d, const AttributeList &Attr, Sema &S) {
|
|||
}
|
||||
|
||||
static void HandleCleanupAttr(Decl *d, const AttributeList &Attr, Sema &S) {
|
||||
// Match gcc which ignores cleanup attrs when compiling C++.
|
||||
if (S.getLangOptions().CPlusPlus)
|
||||
return;
|
||||
|
||||
if (!Attr.getParameterName()) {
|
||||
S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1;
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче