[cfe-users] How to use clang-tidy plugin.

2017-01-17 Thread Alfred Zien via cfe-users
Hi! I need to use clang-tidy as a clang plugin, but can't figure out how to do 
it. 

I see ClangTidyPlugin.cpp file, and there is ClangTidyPlugin target, but when I 
run `make clangTidyPlugin` it produces only libclangTidyPlugin.a, no any 
dynamic library. Am I doing something wrong? Is it even possible?

Thanks for any help.
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] How to use clang-tidy plugin.

2017-01-17 Thread Alfred Zien via cfe-users
Hmm, I discovered that it is actually part of libclang. But still, I run
   $ clang main.c -fsyntax-only -Xclang -load -Xclang 
/Users/zienag/dev/llvm_trunk/build/lib/libclang.dylib -Xclang -plugin -Xclang 
clang-tidy
And it produces error:
   error: unable to find plugin 'clang-tidy'
:(

> On 17 Jan 2017, at 18:12, Alfred Zien via cfe-users 
>  wrote:
> 
> Hi! I need to use clang-tidy as a clang plugin, but can't figure out how to 
> do it. 
> 
> I see ClangTidyPlugin.cpp file, and there is ClangTidyPlugin target, but when 
> I run `make clangTidyPlugin` it produces only libclangTidyPlugin.a, no any 
> dynamic library. Am I doing something wrong? Is it even possible?
> 
> Thanks for any help.
> ___
> cfe-users mailing list
> cfe-users@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users