clang-analyzer plugins require LLVM_ENABLE_PLUGINS alsoThe clang-analyzer plugins are not linked to a particular tool, so theycan only be compiled if plugins are broadly supported. We could optin
clang-analyzer plugins require LLVM_ENABLE_PLUGINS alsoThe clang-analyzer plugins are not linked to a particular tool, so theycan only be compiled if plugins are broadly supported. We could optinstead to decide whether to link them to specifically against clang orwith undefined symbols, depending on the value of LLVM_ENABLE_PLUGINS,but we do not currently expect there to be a use case for that ratherniche configuration.Differential Revision: https://reviews.llvm.org/D119591
show more ...
replace clang LLVM_ENABLE_PLUGINS -> CLANG_PLUGIN_SUPPORT in testsEnsure CLANG_PLUGIN_SUPPORT is compatible with llvm_add_library.Fixes an issue noted in D111100.Differential Revision: https://r
replace clang LLVM_ENABLE_PLUGINS -> CLANG_PLUGIN_SUPPORT in testsEnsure CLANG_PLUGIN_SUPPORT is compatible with llvm_add_library.Fixes an issue noted in D111100.Differential Revision: https://reviews.llvm.org/D119199
[clang][driver] Add -fplugin-arg- to pass arguments to pluginsFrom GCC's manpage:-fplugin-arg-name-key=value Define an argument called key with a value of value for the plugin called name.
[clang][driver] Add -fplugin-arg- to pass arguments to pluginsFrom GCC's manpage:-fplugin-arg-name-key=value Define an argument called key with a value of value for the plugin called name.Since we don't have a key-value pair similar to gcc's plugin_argumentstruct, simply accept key=value here anyway and pass it along as-is toplugins.This translates to the already existing '-plugin-arg-pluginname arg'that clang cc1 accepts.There is an ambiguity here because in clang, both the plugin nameas well as the option name can contain dashes, so when e.g. passing -fplugin-arg-foo-bar-fooit is not clear whether the plugin is foo-bar and the option is foo,or the plugin is foo and the option is bar-foo. GCC solves this byinterpreting all dashes as part of the option name. So dashes can't bepart of the plugin name in this case.Differential Revision: https://reviews.llvm.org/D113250
Add a call super attribute plugin exampleIf a virtual method is marked as call_super, theoverride method must call it, simpler feature like @CallSuperin Android Java.