Skip to content

feat: clang-tidy: avoid limits on number of sources by accepting a params file #103499

@peakschris

Description

@peakschris

On Windows (and possibly other systems), limits on the length of command lines mean that it is not possible to check an entire directory of source files in one invocation.

We are already using config files to pass the compiler args, but there does not appear to be a way to use a config file to pass lists of source files. Using the following, we hit OS limits after around 50 files:

clang-tidy <source0> <source1> ... <sourceN> --config=options.txt

We would like to be able to use this invocation, where sources.list is a file containing a list of source paths, one per line.

clang-tidy @sources.list --config=options.txt

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions