This is an archive of the discontinued LLVM Phabricator instance.

Use CommonOptionsParser in clang-query. This fixes its support of the fixed compilation database and makes it behave consistently with other clang tools.
ClosedPublic

Authored by alexfh on Aug 1 2014, 5:03 PM.

Diff Detail

Event Timeline

alexfh updated this revision to Diff 12126.Aug 1 2014, 5:03 PM
alexfh retitled this revision from to Use CommonOptionsParser in clang-query. This fixes its support of the fixed compilation database and makes it behave consistently with other clang tools..
alexfh updated this object.
alexfh edited the test plan for this revision. (Show Details)
alexfh added reviewers: klimek, pcc.
alexfh added a subscriber: Unknown Object (MLST).
pcc accepted this revision.Aug 1 2014, 5:17 PM
pcc edited edge metadata.

LGTM

I based this code on tool-template, so I was unaware of the existence of CommonOptionsParser. Perhaps it would be a good idea to update tool-template as well?

This revision is now accepted and ready to land.Aug 1 2014, 5:17 PM
alexfh closed this revision.Aug 1 2014, 6:11 PM
alexfh added a comment.Aug 1 2014, 6:26 PM

I didn't know tool-template exists. But it's a good idea. I've sent you a
patch for review.