[clang] Add handling of the `-nostdlibinc` option to ccc-analyzer (PR #88017)

Artem Dergachev via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 8 12:39:46 PDT 2024


haoNoQ wrote:

I never realized that scan-build makes a "short list" of flags to pass through and throws away the rest. This is terrifying. It only works because most compiler flags are recognized because they're prefixed with `-f`, `-W`, etc.; but it's fascinating that it even works.

This may be testable; we've recently started adding tests for scan-build. But you'll have to see how `-nostdlibinc` is tested in general, and then see if you can combine the two tricks.

https://github.com/llvm/llvm-project/pull/88017


More information about the cfe-commits mailing list