This is an archive of the discontinued LLVM Phabricator instance.

Add support for the /EP argument to clang-cl
ClosedPublic

Authored by ehsan on Jun 13 2014, 5:19 AM.

Details

Reviewers
hans
rnk
Summary

This maps the /EP argument to both -E and -P.

Diff Detail

Event Timeline

ehsan updated this revision to Diff 10384.Jun 13 2014, 5:19 AM
ehsan retitled this revision from to Add support for the /EP argument to clang-cl.
ehsan updated this object.
ehsan edited the test plan for this revision. (Show Details)
ehsan added reviewers: hans, rnk.
ehsan added a subscriber: ehsan.
hans edited edge metadata.Jun 13 2014, 9:06 AM

Nice, just some minor comments.

include/clang/Driver/CLCompatOptions.td
143

Should this be disable linemarker output and preprocess to stdout?

lib/Driver/Driver.cpp
155

Missing comma after EP?

We should either group all the flags together in the comment, or keep the gcc-style and cl-style (like /P) separate.

ehsan updated this revision to Diff 10400.Jun 13 2014, 11:39 AM
ehsan edited edge metadata.

Addressed the review comments

hans accepted this revision.Jun 13 2014, 1:51 PM
hans edited edge metadata.

Looks good to me.

This revision is now accepted and ready to land.Jun 13 2014, 1:51 PM
ehsan closed this revision.Jun 18 2014, 5:14 PM