This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Remove extra semicolons
ClosedPublic

Authored by metzman on Feb 26 2019, 7:25 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

metzman created this revision.Feb 26 2019, 7:25 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 26 2019, 7:25 AM
Herald added subscribers: llvm-commits, Restricted Project, jdoerfert. · View Herald Transcript

Please take a look.
It might be worth adding -Wextra-semi to libFuzzer's cflags,.

Dor1s accepted this revision.Feb 26 2019, 9:16 AM

Not sure if it's worth spending time on, but the change LGTM

This revision is now accepted and ready to land.Feb 26 2019, 9:16 AM
Dor1s added a comment.Feb 26 2019, 9:17 AM

Btw, if there is a way to automatically detect those unnecessary semicolons, isn't there a way to automatically remove them?

morehouse accepted this revision.Feb 26 2019, 9:28 AM

LGTM, thanks!

This revision was automatically updated to reflect the committed changes.

Btw, if there is a way to automatically detect those unnecessary semicolons, isn't there a way to automatically remove them?

The warning could have a fixit for that. If it doesn't yet, it should grow one. You can then build with -Xclang -fixit to apply the fixits as part of the build.