This is an archive of the discontinued LLVM Phabricator instance.

Make NumOccurrenceFlag for SourcePaths configurable
ClosedPublic

Authored by hintonda on Aug 16 2015, 6:19 PM.

Details

Reviewers
alexfh
Summary

Added an additional ctor that takes a NumOccurrenceFlag parameter for the
SourcePaths option. This frees applications from always having to pass at least
one source file, e.g., -list-checks.

Diff Detail

Event Timeline

hintonda updated this revision to Diff 32257.Aug 16 2015, 6:19 PM
hintonda retitled this revision from to Make NumOccurrenceFlag for SourcePaths configurable.
hintonda updated this object.
hintonda added a reviewer: alexfh.
alexfh accepted this revision.Aug 17 2015, 2:39 AM
alexfh edited edge metadata.

Looks good with a few nits. I'll fix them and submit the patch for you. Thanks for fixing this!

include/clang/Tooling/CommonOptionsParser.h
76

nit: There should be no space before the parenthesis. Also, the 80-column limit seems to be exceeded.

90

No need for enum.

lib/Tooling/CommonOptionsParser.cpp
97

nit: No need for enum, column limit.

124

OccurrencesFlag can potentially be set to Optional, which should be handled in some way as well.

This revision is now accepted and ready to land.Aug 17 2015, 2:39 AM
alexfh closed this revision.Aug 17 2015, 3:06 AM

Fixed the issues and committed revision 245204.

Thank you!

Great, thanks again...