Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 27034 Build 27033: arc lint + arc unit
Event Timeline
Do we have any test coverage for this change? IIRC, this was one we couldn't figure out how to trigger?
lib/AST/ASTDumper.cpp | ||
---|---|---|
637 | Extra whitespace at the start of the string literal, or is that intentional? Also, do we want to standardize on <<<NULL>>> with three brackets instead of two? | |
647–648 | You can drop getNumParams() here -- if param_begin() returns a non-null value, getNumParams() must return a non-zero value. (param_begin() is implemented in terms of parameters(), which calls getNumParams() when setting up the returned ArrayRef.) |
lib/AST/ASTDumper.cpp | ||
---|---|---|
637 | Ah, I understand the whitespace now, so that was intentional I believe. Question remains about whether we want to also switch to use <<< consistently remains though. |
lib/AST/ASTDumper.cpp | ||
---|---|---|
647–648 | It seems that this is needed because the situation can arise when the function is not fully constructed yet, such as when calling dump() under the debugger. I think this can be more clearly expressed as if (!D->param_empty() && !D->param_begin()), but should also have some comments explaining that this is guarding against a situation that only comes up while debugging, and thus is not covered by any existing test cases. |
Re-flow comments to 80-col.