[cfe-dev] What is the purpose of python wrappers for clang tools binaries?

Miklos Vajna via cfe-dev cfe-dev at lists.llvm.org
Fri Jan 26 06:00:59 PST 2018


Hi Tom,

On Thu, Jan 25, 2018 at 07:48:53PM -0800, Tom Stellard via cfe-dev <cfe-dev at lists.llvm.org> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180126/cac44aa6/attachment.sig>


More information about the cfe-dev mailing list