This is an archive of the discontinued LLVM Phabricator instance.

[clang][Tooling] Filter flags that generate output in SyntaxOnlyAdjuster
ClosedPublic

Authored by kadircet on Nov 13 2019, 4:49 AM.

Details

Summary

Flags that generate output could result in failures when creating
syntax only actions. This patch introduces initial logic for filtering out
those. The first such flag is "save-temps", which saves intermediate
files(bitcode, assembly, etc.) into a specified directory.

Fixes https://github.com/clangd/clangd/issues/191

Diff Detail

Event Timeline

kadircet created this revision.Nov 13 2019, 4:49 AM

Build result: pass - 59822 tests passed, 0 failed and 762 were skipped.
Log files: console-log.txt, CMakeCache.txt

hokein accepted this revision.Nov 13 2019, 5:40 AM
hokein added inline comments.
clang/lib/Tooling/ArgumentsAdjusters.cpp
24

nit: this comment seems out-of-date.

This revision is now accepted and ready to land.Nov 13 2019, 5:40 AM
kadircet updated this revision to Diff 229069.Nov 13 2019, 5:44 AM
kadircet marked an inline comment as done.
  • Update comment to mention droppage of options that generate output.

Build result: pass - 59822 tests passed, 0 failed and 762 were skipped.
Log files: console-log.txt, CMakeCache.txt

This revision was automatically updated to reflect the committed changes.