We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe61e41 commit c997407Copy full SHA for c997407
infer/src/clang/Capture.ml
@@ -190,10 +190,12 @@ let cc1_capture clang_cmd =
190
191
192
let capture clang_cmd =
193
- if ClangCommand.can_attach_ast_exporter clang_cmd then
+ if ClangCommand.can_attach_ast_exporter clang_cmd then (
194
(* this command compiles some code; replace the invocation of clang with our own clang and
195
plugin *)
196
- cc1_capture clang_cmd
+ cc1_capture clang_cmd ; (* to create AST *)
197
+ run_clang clang_cmd Utils.echo_in ; (* to run clang with original optimizer *)
198
+ () )
199
else if Option.exists Config.buck_mode ~f:BuckMode.is_clang_compilation_db then
200
(* when running with buck's compilation-database, skip commands where frontend cannot be
201
attached, as they may cause unnecessary compilation errors *)
0 commit comments