Home | History | Annotate | Download | only in Sema

Lines Matching defs:deprecated

121 __declspec(deprecated("This is deprecated")) enum DE1 { one, two } e1; // expected-note {{'e1' has been explicitly marked deprecated here}}
122 struct __declspec(deprecated) DS1 { int i; float f; }; // expected-note {{'DS1' has been explicitly marked deprecated here}}
124 #define MY_TEXT "This is also deprecated"
125 __declspec(deprecated(MY_TEXT)) void Dfunc1( void ) {} // expected-note {{'Dfunc1' has been explicitly marked deprecated here}}
127 struct __declspec(deprecated(123)) DS2 {}; // expected-error {{'deprecated' attribute requires a string}}
130 e1 = one; // expected-warning {{'e1' is deprecated: This is deprecated}}
131 struct DS1 s = { 0 }; // expected-warning {{'DS1' is deprecated}}
132 Dfunc1(); // expected-warning {{'Dfunc1' is deprecated: This is also deprecated}}
134 enum DE1 no; // no warning because E1 is not deprecated