[clang] [clang] Inject tokens containing #embed back into token stream (PR #97274)

2024-07-09 Thread Jakub Jelínek via cfe-commits
jakubjelinek wrote: Maybe, but I've add quite a few new testcases too... https://github.com/llvm/llvm-project/pull/97274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Inject tokens containing #embed back into token stream (PR #97274)

2024-07-09 Thread Jakub Jelínek via cfe-commits
jakubjelinek wrote: I'd like to point out that most of the testcases I wrote for the GCC implementation still fail with the latest clang on godbolt. https://github.com/llvm/llvm-project/pull/97274 ___ cfe-commits mailing list

[clang] [clang-tools-extra] Reland [clang][Sema, Lex, Parse] Preprocessor embed in C and C++ (PR #95802)

2024-06-19 Thread Jakub Jelínek via cfe-commits
@@ -0,0 +1,98 @@ +// RUN: %clang_cc1 %s -fsyntax-only --embed-dir=%S/Inputs -verify=expected,cxx -Wno-c23-extensions +// RUN: %clang_cc1 -x c -std=c23 %s -fsyntax-only --embed-dir=%S/Inputs -verify=expected,c +#embed +; + +void f (unsigned char x) { (void)x;} +void g () {}