HerrCai0907 wrote:

> I had the realization now that as a user I would like this to be supported:
> 
> ```
> clang-tidy @params
> ```
> 
> Where `params` can contain:
> 
> ```
> <clang-tidy-flags> foo.cpp -- <compiler flags>
> ```
> 
> This would make it also consistent with clang, where you can do `clang 
> @params`.
> 
> Would this be feasible?

Full supporting is hard. But we can do like this:

in `build/sources`
```
build/a.cpp
build/init.cpp
```

in `build/options`
```
-std=c++23
-isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
```

Then you can run clang and clang-tidy with

```bash
 build/release/bin/clang@build/sources @build/options
```
```bash
 build/release/bin/clang-tidy @build/sources -- @build/options
```

https://github.com/llvm/llvm-project/pull/120547
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to