Initialize CommonOptionsParser with ZeroOrOne NumOccurrenceFlag so callers can pass -list-checks without the need to pass additional positional parameters, then add dummy file if none were supplied.
Details
Details
Diff Detail
Diff Detail
Event Timeline
clang-tidy/tool/ClangTidyMain.cpp | ||
---|---|---|
274 | clang-tidy should also error out when no positional arguments are specified and no -list-checks. Will fix that as well. |
Comment Actions
Fixed the issues and committed as revision 245205.
Thanks for the fix!
clang-tidy/tool/ClangTidyMain.cpp | ||
---|---|---|
272 | s/pathlist/PathList/g |
Looks like it exceeds the 80-column limit.