This is an archive of the discontinued LLVM Phabricator instance.

clang-tidy and clang-query wont crash with invalid command line options
ClosedPublic

Authored by njames93 on May 30 2020, 2:05 PM.

Diff Detail

Event Timeline

njames93 created this revision.May 30 2020, 2:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2020, 2:05 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
njames93 updated this revision to Diff 267483.May 30 2020, 4:17 PM

Fix compile error

aaron.ballman accepted this revision.May 31 2020, 6:33 AM

LGTM, but can you add test coverage for this?

This revision is now accepted and ready to land.May 31 2020, 6:33 AM
njames93 updated this revision to Diff 267501.May 31 2020, 8:01 AM

Added test coverage.

thakis added a subscriber: thakis.May 31 2020, 8:14 AM

This breaks check-clang-tools on windows: http://45.33.8.238/win/16485/step_8.txt

Looks like you need to optionally allow a .exe suffix in the test. Please take a look, and revert if it takes a while until you can fix.

(I'm on a phone, else I'd fix myself.)

This revision was automatically updated to reflect the committed changes.
njames93 reopened this revision.May 31 2020, 8:42 AM

This breaks check-clang-tools on windows: http://45.33.8.238/win/16485/step_8.txt

Looks like you need to optionally allow a .exe suffix in the test. Please take a look, and revert if it takes a while until you can fix.

(I'm on a phone, else I'd fix myself.)

Just seen the buildbot, I've reverted it for now. Don't have windows to test so didnt want to fire away more breaking commits

This revision is now accepted and ready to land.May 31 2020, 8:42 AM
njames93 updated this revision to Diff 267504.May 31 2020, 8:44 AM

Hopefully fix windows test cases

thakis accepted this revision.May 31 2020, 9:18 AM

Test fix looks good as far as I can tell. Landing and seeing what the bot says is ok. It's fine for some of the bots to be red for a short while as long as it isn't hours. Thanks!

Test fix looks good as far as I can tell. Landing and seeing what the bot says is ok. It's fine for some of the bots to be red for a short while as long as it isn't hours. Thanks!

I'm unsure about one part(the CHECK-NEXT lines, just wanna see what the pre merge bot says.

njames93 updated this revision to Diff 267505.May 31 2020, 9:37 AM

Actually fix the windows builds

This revision was automatically updated to reflect the committed changes.