This is an archive of the discontinued LLVM Phabricator instance.

Validate -add-plugin arguments.
ClosedPublic

Authored by thakis on Jan 3 2019, 8:18 AM.

Details

Summary

-plugin already prints an error if the name of an unknown plugin is passed. -add-plugin used to silently ignore that, now it errors too.

Diff Detail

Repository
rC Clang

Event Timeline

thakis updated this revision to Diff 180084.Jan 3 2019, 8:18 AM
thakis created this revision.

forgot to add test

thakis marked an inline comment as done.Jan 3 2019, 8:20 AM
thakis added inline comments.
clang/test/Frontend/plugin-unknown.c
3 ↗(On Diff #180084)

Probably doesn't even require plugins, since we don't need to load any shared libaries for this test. I'll remove this.

thakis updated this revision to Diff 180085.Jan 3 2019, 8:20 AM

remove require

rnk accepted this revision.Jan 3 2019, 10:16 AM

lgtm!

This revision is now accepted and ready to land.Jan 3 2019, 10:16 AM
This revision was automatically updated to reflect the committed changes.