diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-17 22:16:11 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-17 22:16:11 +0000 |
commit | 0015f0987792014c9f9daf595c8f4594cb465213 (patch) | |
tree | 4f60f278c12f3861df6718e1a61c31082b81f2ea /clang/lib/Headers | |
parent | 01a7fba820a612d55d2c09ab734f4c774ba6aa0a (diff) | |
download | bcm5719-llvm-0015f0987792014c9f9daf595c8f4594cb465213.tar.gz bcm5719-llvm-0015f0987792014c9f9daf595c8f4594cb465213.zip |
Parsing support for C11's _Noreturn keyword. No semantics yet.
llvm-svn: 172761
Diffstat (limited to 'clang/lib/Headers')
-rw-r--r-- | clang/lib/Headers/CMakeLists.txt | 1 | ||||
-rw-r--r-- | clang/lib/Headers/stdnoreturn.h | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/clang/lib/Headers/CMakeLists.txt b/clang/lib/Headers/CMakeLists.txt index 25e4d903bb7..ae689c37fae 100644 --- a/clang/lib/Headers/CMakeLists.txt +++ b/clang/lib/Headers/CMakeLists.txt @@ -27,6 +27,7 @@ set(files stdbool.h stddef.h stdint.h + stdnoreturn.h tgmath.h tmmintrin.h varargs.h diff --git a/clang/lib/Headers/stdnoreturn.h b/clang/lib/Headers/stdnoreturn.h new file mode 100644 index 00000000000..a7a301d7e0b --- /dev/null +++ b/clang/lib/Headers/stdnoreturn.h @@ -0,0 +1,30 @@ +/*===---- stdnoreturn.h - Standard header for noreturn macro ---------------=== + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + *===-----------------------------------------------------------------------=== + */ + +#ifndef __STDNORETURN_H +#define __STDNORETURN_H + +#define noreturn _Noreturn +#define __noreturn_is_defined 1 + +#endif /* __STDNORETURN_H */ |