[PATCH] D128409: [clang-cl] Add -emit-ast to clang-cl driver
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 27 07:15:47 PDT 2022
hans accepted this revision.
hans added a comment.
This revision is now accepted and ready to land.
It feels kind of weird to use the `/Fo` option for this that's for object files, but if that makes using the static analyzer more convenient that's okay I suppose.
Comment at: clang/test/Driver/ast.c:30
+// Also check clang-cl since the driver is slightly different
+// RUN: %clang_cl -ccc-print-phases -emit-ast %s 2> %t
+// RUN: echo 'END' >> %t
This needs a `--` before `%s` otherwise clang-cl might interpret the filename as a flag, e.g. if it starts with /Users which is common on Mac.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits