This is an archive of the discontinued LLVM Phabricator instance.

Extract runCommandsInFile method
ClosedPublic

Authored by steveire on Aug 25 2018, 9:16 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

steveire created this revision.Aug 25 2018, 9:16 AM

I'm not opposed to the changes here, but I am wondering what the benefits are to splitting this off into its own function?

clang-query/tool/ClangQuery.cpp
61 ↗(On Diff #162554)

I think this function should return a bool instead of an int. The caller can decide how to translate failure into a return code.

61–62 ↗(On Diff #162554)

You should run your patch through clang-format to properly format only the parts that you've changed. Also, it should be ExeName and FileName per the coding standard.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 30 2018, 4:26 PM
This revision was automatically updated to reflect the committed changes.
steveire marked 2 inline comments as done.Aug 30 2018, 4:29 PM

Thanks, I fixed the issues before committing. This commit was a prerequisite to https://reviews.llvm.org/D51261