def warn_fe_backend_unsupported : Warning<"%0">, BackendInfo;
def err_fe_backend_error_attr :
- Error<"call to %0 declared with 'error' attribute: %1">, BackendInfo;
+ Error<"call to '%0' declared with 'error' attribute: %1">, BackendInfo;
def warn_fe_backend_warning_attr :
- Warning<"call to %0 declared with 'warning' attribute: %1">, BackendInfo,
+ Warning<"call to '%0' declared with 'warning' attribute: %1">, BackendInfo,
InGroup<BackendWarningAttributes>;
def err_fe_invalid_code_complete_file : Error<
duplicate_warnings(void);
void baz(void) {
- foo(); // expected-error {{call to foo declared with 'error' attribute: oh no foo}}
+ foo(); // expected-error {{call to 'foo' declared with 'error' attribute: oh no foo}}
if (x())
- bar(); // expected-error {{call to bar declared with 'error' attribute: oh no bar}}
+ bar(); // expected-error {{call to 'bar' declared with 'error' attribute: oh no bar}}
- quux(); // enabled-warning {{call to quux declared with 'warning' attribute: oh no quux}}
- __compiletime_assert_455(); // expected-error {{call to __compiletime_assert_455 declared with 'error' attribute: demangle me}}
- duplicate_errors(); // expected-error {{call to duplicate_errors declared with 'error' attribute: two}}
- duplicate_warnings(); // enabled-warning {{call to duplicate_warnings declared with 'warning' attribute: two}}
+ quux(); // enabled-warning {{call to 'quux' declared with 'warning' attribute: oh no quux}}
+ __compiletime_assert_455(); // expected-error {{call to '__compiletime_assert_455' declared with 'error' attribute: demangle me}}
+ duplicate_errors(); // expected-error {{call to 'duplicate_errors' declared with 'error' attribute: two}}
+ duplicate_warnings(); // enabled-warning {{call to 'duplicate_warnings' declared with 'warning' attribute: two}}
}
duplicate_warnings(void);
void baz(void) {
- foo(); // expected-error {{call to foo() declared with 'error' attribute: oh no foo}}
+ foo(); // expected-error {{call to 'foo()' declared with 'error' attribute: oh no foo}}
if (x())
- bar(); // expected-error {{call to bar() declared with 'error' attribute: oh no bar}}
+ bar(); // expected-error {{call to 'bar()' declared with 'error' attribute: oh no bar}}
- quux(); // enabled-warning {{call to quux() declared with 'warning' attribute: oh no quux}}
- __compiletime_assert_455(); // expected-error {{call to __compiletime_assert_455() declared with 'error' attribute: demangle me}}
- duplicate_errors(); // expected-error {{call to duplicate_errors() declared with 'error' attribute: two}}
- duplicate_warnings(); // enabled-warning {{call to duplicate_warnings() declared with 'warning' attribute: two}}
+ quux(); // enabled-warning {{call to 'quux()' declared with 'warning' attribute: oh no quux}}
+ __compiletime_assert_455(); // expected-error {{call to '__compiletime_assert_455()' declared with 'error' attribute: demangle me}}
+ duplicate_errors(); // expected-error {{call to 'duplicate_errors()' declared with 'error' attribute: two}}
+ duplicate_warnings(); // enabled-warning {{call to 'duplicate_warnings()' declared with 'warning' attribute: two}}
}
#ifdef __cplusplus
};
void baz_cpp(void) {
- foo(); // expected-error {{call to foo() declared with 'error' attribute: oh no foo}}
+ foo(); // expected-error {{call to 'foo()' declared with 'error' attribute: oh no foo}}
if (x())
- bar(); // expected-error {{call to bar() declared with 'error' attribute: oh no bar}}
- quux(); // enabled-warning {{call to quux() declared with 'warning' attribute: oh no quux}}
+ bar(); // expected-error {{call to 'bar()' declared with 'error' attribute: oh no bar}}
+ quux(); // enabled-warning {{call to 'quux()' declared with 'warning' attribute: oh no quux}}
// Test that we demangle correctly in the diagnostic for C++.
- __compiletime_assert_455(); // expected-error {{call to __compiletime_assert_455() declared with 'error' attribute: demangle me}}
- nocall<int>(42); // expected-error {{call to int nocall<int>(int) declared with 'error' attribute: demangle me, too}}
+ __compiletime_assert_455(); // expected-error {{call to '__compiletime_assert_455()' declared with 'error' attribute: demangle me}}
+ nocall<int>(42); // expected-error {{call to 'int nocall<int>(int)' declared with 'error' attribute: demangle me, too}}
Widget W;
- int w = W; // enabled-warning {{Widget::operator int() declared with 'warning' attribute: don't call me!}}
+ int w = W; // enabled-warning {{call to 'Widget::operator int()' declared with 'warning' attribute: don't call me!}}
}
#endif