[clang] [ObjC][Preprocessor] Handle @import directive as a pp-directive (PR #157726)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 14 11:10:25 PDT 2025


yronglin wrote:

> The code changes here look fine, but it would be good to have some more test examples. Particularly around things like:
> 
> ```
> #define M modA
> @import M;
> ```
> 
> and cases that shouldn't compile, like:
> 
> ```
> #define imp @import
> imp M;
> ```

Thanks for the review, I'll add more test.

https://github.com/llvm/llvm-project/pull/157726


More information about the cfe-commits mailing list