[PATCH] D10356: scan-build: Add --triple option to scan-build
kremenek at apple.com
Thu Jul 30 15:13:35 PDT 2015
krememek added inline comments.
Comment at: tools/scan-build/scan-build:1156
@@ +1155,3 @@
+ This provides target triple information to clang.
This is the only real documentation provided to the user to understand what this option does. It is a completely optional option, and I feel it needs a bit more clarification. Perhaps just a second sentence to say "use this when you want to analyze for a different architecture than the default". Also, it isn't clear to the user if this effects both static analysis and compilation, or just compilation. For example, is the expectation that compilation gets the normal flags without this trip, and that static analysis gets this triple?
There's also many cases where this flag won't work. Instead of having a specific flag for target triple, maybe just an "extra flags to pass to the compiler" would be sufficient (and more general).
More information about the cfe-commits