Files
clang-p2996/flang/lib/Parser/preprocessor.cpp
Peter Klausler 850d42fb14 [flang] Handle "defined" in macro expansions (#114844)
The preprocessor implements "defined(X)" and "defined X" in if/elif
directive expressions in such a way that they only work at the top
level, not when they appear in macro expansions. Fix that, which is a
little tricky due to the need to detect the "defined" keyword before
applying any macro expansion to its argument, and add a bunch of tests.

Fixes https://github.com/llvm/llvm-project/issues/114064.
2024-11-05 13:18:27 -08:00

43 KiB