Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 26843 Build 26842: arc lint + arc unit
Event Timeline
LGTM aside from a nit.
lib/AST/ASTDumper.cpp | ||
---|---|---|
1464 | const auto * | |
lib/AST/TextNodeDumper.cpp | ||
276–280 | This pattern is coming up quite frequently. I wonder if we should factor this out into something like: template <typename Ty> bool dumpNullObject(const Ty *Val, StringRef Label) const { if (!Val) { ColorScope Color(OS, ShowColors, NullColor); OS << "<<<NULL>>> " << Label; } return !Val; } So that uses become: if (dumpNullObject(Whatever, "Whatever")) return; Doesn't have to be done as part of this patch, but it seems like it might reduce some redundancy. |
lib/AST/TextNodeDumper.cpp | ||
---|---|---|
276–280 | Something to come back to later I think. It would be more consistent now to have the label on the left side (dumping the various parts of an if() which may be nullptr), and in this OMPClause case, to not have a label on the right side. Also - at least the 'OS << "<<<NULL>>>"' in the comment visitor is dead unreachable code. |
const auto *