Validate -add-plugin arguments.
authorNico Weber <nicolasweber@gmx.de>
Thu, 3 Jan 2019 18:26:06 +0000 (18:26 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 3 Jan 2019 18:26:06 +0000 (18:26 +0000)
commitca27a2b037f149654057927973a6221e71cdf242
tree0c53d5468062173cf531a7fd8f07c6901a5c76a6
parent4f13d041ca993c67766b382ee80a474d60d94464
Validate -add-plugin arguments.

-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.

Differential Revision: https://reviews.llvm.org/D56273

llvm-svn: 350340
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Frontend/plugin-unknown.c [new file with mode: 0644]