What is the purpose of python wrappers for clang tools binaries?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

What is the purpose of python wrappers for clang tools binaries?

Jon Chesterfield via cfe-dev
Hi,

In both the clang and clang-tools-extra repositories, there are python wrappers
(e.g. clang-format.py, run-clang-tidy.py, etc.) for the various tools.  What is the
advantage of using these scripts over running the executables directly?

Thanks,
Tom
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: What is the purpose of python wrappers for clang tools binaries?

Jon Chesterfield via cfe-dev
Hi Tom,

On Thu, Jan 25, 2018 at 07:48:53PM -0800, Tom Stellard via cfe-dev <[hidden email]> wrote:
> In both the clang and clang-tools-extra repositories, there are python wrappers
> (e.g. clang-format.py, run-clang-tidy.py, etc.) for the various tools.  What is the
> advantage of using these scripts over running the executables directly?

See the top comment in tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py:

> Runs clang-tidy over all files in a compilation database.

It also integrates with clang-apply-replacements.

tools/clang/tools/clang-format/clang-format.py:

> This file is a minimal clang-format vim-integration.

Regards,

Miklos

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

signature.asc (188 bytes) Download Attachment