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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to