Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 14558 Build 14558: arc lint + arc unit
Event Timeline
include/clang/Tooling/Tooling.h | ||
---|---|---|
335 | I'm not sure whether this new behavior will cause any regression issues (many tools invoke this method like if (Tool.run(...)))
Maybe @bkramer has more words on it? |
include/clang/Tooling/Tooling.h | ||
---|---|---|
335 | I should have mentioned in the path summary that I think this would not regress tools. I checked call sites of this API. I think it's reasonable for most tools to treat skipping files as failure (if they care about failure; some tools simply ignore the status code). Tools that care about this are already ignoring the failures (e.g. https://github.com/llvm-mirror/clang/blob/master/tools/clang-refactor/ClangRefactor.cpp#L630). But there might be something that I am missing. I would certainly like more opinions on this. |
lib/Tooling/Tooling.cpp | ||
---|---|---|
404–405 | This comment explains why the implementation doesn't error. Can you make sure the xargs use case is still working properly? |
lib/Tooling/Tooling.cpp | ||
---|---|---|
404–405 | I somehow missed the big FIXME... thanks for the catch! I don't think this is a very typical use case that should affect design decision here, and I would expect xargs users to do something like xargs tool $@ || true if they really want to ignore errors. WDYT? |
lib/Tooling/Tooling.cpp | ||
---|---|---|
404–405 | Yeah. I think the only important thing is that xargs doesn't stop after the first error. But that seems to be the default behavior of xargs? |
lib/Tooling/Tooling.cpp | ||
---|---|---|
404–405 | Looks like this is the case, from the manual: If any invocation of the command exits with a status of 255, xargs will stop immediately without reading any further input. An error message is issued on stderr when this happens. Should I just remove the FIXME? |
I'm not sure whether this new behavior will cause any regression issues (many tools invoke this method like if (Tool.run(...)))
Maybe @bkramer has more words on it?