This adds support for multiple attributes in `#pragma clang attribute push`, for example: ``` ``` or ``` ``` Related attributes can now be applied with a single pragma, which makes it harder for developers to make an accidental error later when editing the code. rdar://78269653 Differential Revision: https://reviews.llvm.org/D121283
9 lines
350 B
C++
9 lines
350 B
C++
// RUN: %clang_cc1 -triple i386-pc-win32 -fms-extensions -fms-compatibility -fsyntax-only -ast-dump %s | FileCheck %s
|
|
|
|
#pragma clang attribute push (__declspec(dllexport, noinline), apply_to=function)
|
|
void func1();
|
|
#pragma clang attribute pop
|
|
// CHECK: FunctionDecl {{.*}} func1
|
|
// CHECK-NEXT: DLLExportAttr {{.*}}
|
|
// CHECK-NEXT: NoInlineAttr {{.*}}
|