[clang] [analyzer][CTU] Macro expansions for imported translation units (PR #176126)
Vladimir Vuksanovic via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 07:23:17 PST 2026
================
@@ -0,0 +1,164 @@
+// RUN: rm -rf %t && mkdir %t
+// RUN: mkdir -p %t/ctudir
+// RUN: %clang_cc1 -emit-pch -detailed-preprocessing-record -o %t/ctudir/plist-macros-ctu.c.ast %S/Inputs/plist-macros-ctu.c
----------------
vvuksanovic wrote:
I will add a test for that. In that case expansions aren't serialized in the AST and an empty value would be returned by `getExpandedText`. The output plist file would just not contain the macro expansions from that unit.
https://github.com/llvm/llvm-project/pull/176126
More information about the cfe-commits
mailing list