Mercurial > hg > CbC > CbC_llvm
changeset 255:8d0e9910c5b3
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 12:35:07 +0900 |
parents | 731cecd08f47 |
children | 7d9b19ec7a62 |
files | clang/include/clang/AST/BuiltinTypes.def clang/include/clang/Basic/LangOptions.def clang/include/clang/Basic/TokenKinds.def clang/lib/Parse/CMakeLists.txt |
diffstat | 4 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/clang/include/clang/AST/BuiltinTypes.def Fri Aug 18 11:20:44 2023 +0900 +++ b/clang/include/clang/AST/BuiltinTypes.def Fri Aug 18 12:35:07 2023 +0900 @@ -57,6 +57,10 @@ // void BUILTIN_TYPE(Void, VoidTy) +#ifndef noCbC +BUILTIN_TYPE(__Code, __CodeTy) +#endif + //===- Unsigned Types -----------------------------------------------------===// // 'bool' in C++, '_Bool' in C99
--- a/clang/include/clang/Basic/LangOptions.def Fri Aug 18 11:20:44 2023 +0900 +++ b/clang/include/clang/Basic/LangOptions.def Fri Aug 18 12:35:07 2023 +0900 @@ -416,6 +416,10 @@ BENIGN_LANGOPT(AllowEditorPlaceholders, 1, 0, "allow editor placeholders in source") +#ifndef noCbC +LANGOPT(HasCodeSegment , 1, 0, "CbC") +#endif + ENUM_LANGOPT(ClangABICompat, ClangABI, 4, ClangABI::Latest, "version of Clang that we should attempt to be ABI-compatible " "with")
--- a/clang/include/clang/Basic/TokenKinds.def Fri Aug 18 11:20:44 2023 +0900 +++ b/clang/include/clang/Basic/TokenKinds.def Fri Aug 18 12:35:07 2023 +0900 @@ -332,7 +332,12 @@ KEYWORD(__func__ , KEYALL) KEYWORD(__objc_yes , KEYALL) KEYWORD(__objc_no , KEYALL) - + +#ifndef noCbC // CbC Keywords. +KEYWORD(__code , KEYALL) +KEYWORD(_CbC_return , KEYALL) +KEYWORD(_CbC_environment , KEYALL) +#endif // C++ 2.11p1: Keywords. KEYWORD(asm , KEYCXX|KEYGNU)