Home
last modified time | relevance | path

Searched refs:_Noreturn (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/clang/test/Parser/
H A Dc11-noreturn.c4 _Noreturn int f(void);
5 int _Noreturn f(void); // expected-note {{previous}}
6 int f _Noreturn(); // expected-error {{expected ';'}} expected-error 2{{}}
7 int f(void) _Noreturn; // expected-error {{'_Noreturn' keyword must precede function declarator}}
9 _Noreturn char c1; // expected-error {{'_Noreturn' can only appear on functions}}
10 char _Noreturn c2; // expected-error {{'_Noreturn' can only appear on functions}}
12 typedef _Noreturn int g(void); // expected-error {{'_Noreturn' can only appear on functions}}
14 _Noreturn int; // expected-error {{'_Noreturn' can only appear on functions}} expected-warning {{do…
15 _Noreturn struct S; // expected-error {{'_Noreturn' can only appear on functions}}
16 _Noreturn enum E { e }; // expected-error {{'_Noreturn' can only appear on functions}}
/llvm-project-15.0.7/clang/test/Sema/
H A Dc2x-noreturn.c12 #if !__has_c_attribute(_Noreturn)
16 #if __has_c_attribute(noreturn) != __has_c_attribute(_Noreturn) || \
31 _Noreturn void func1(void); // ok, using the function specifier
36 [[_Noreturn]] void func3(void); // all-warning {{the '[[_Noreturn]]' attribute spelling is deprecat…
51 [[_Noreturn]] void func10(void); // all-warning {{the '[[_Noreturn]]' attribute spelling is depreca…
58 #if !__has_c_attribute(_Noreturn)
64 #define NORETURN _Noreturn
H A Ddeclspec.c51 _Noreturn _Noreturn void pr8264_7(void); // expected-warning {{duplicate '_Noreturn' declaration s…
H A Dwarn-main.c27 _Noreturn int main(void) { in main()
H A Dreturn-noreturn.c40 _Noreturn void test5(void) { in test5()
/llvm-project-15.0.7/clang/test/FixIt/
H A Dfixit-errors.c27 void noreturn_1(void) _Noreturn; // expected-error {{must precede function declarator}}
31 void noreturn_2(void) _Noreturn { // expected-error {{must precede function declarator}} in noreturn_2()
/llvm-project-15.0.7/libc/include/
H A D__llvm-libc-common.h20 #undef _Noreturn
21 #define _Noreturn [[noreturn]] macro
/llvm-project-15.0.7/clang/lib/Headers/
H A Dstdnoreturn.h13 #define noreturn _Noreturn
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dfunction-attributes.c43 _Noreturn void f9a(void);
/llvm-project-15.0.7/libc/spec/
H A Dspec.td66 // _Noreturn is really not a type, but it is convenient to treat it as a type.
67 def NoReturn : NamedType<"_Noreturn void">;
/llvm-project-15.0.7/llvm/test/DebugInfo/X86/
H A Dnoreturn_c11.ll4 ; _Noreturn void f() {
/llvm-project-15.0.7/clang/test/Analysis/
H A Dstream.c245 _Noreturn void handle_error(void);
/llvm-project-15.0.7/libc/config/linux/
H A Dapi.td21 _Noreturn void __assert_fail(const char *, const char *, unsigned, const char *);
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTokenKinds.def327 KEYWORD(_Noreturn , KEYALL)
H A DAttrDocs.td491 A function declared as ``_Noreturn`` shall not return to its caller. The
492 compiler will generate a diagnostic for a function declared as ``_Noreturn``
494 specifier, the ``_Noreturn`` attribute cannot be specified on a function
501 let Heading = "noreturn, _Noreturn";
507 The ``[[_Noreturn]]`` spelling is deprecated and only exists to ease code
H A DAttr.td1243 let Spellings = [Keyword<"_Noreturn">];
1251 C2x<"", "noreturn", 202202>, C2x<"", "_Noreturn", 202202>];
H A DDiagnosticParseKinds.td167 "'_Noreturn' keyword must precede function declarator">;
H A DDiagnosticSemaKinds.td439 "'_Noreturn' can only appear on functions">;
863 "'main' is not allowed to be declared _Noreturn">, InGroup<Main>;
864 def note_main_remove_noreturn : Note<"remove '_Noreturn'">;
4076 "the '[[_Noreturn]]' attribute spelling is deprecated in C2x; use "