1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncountedCallArgsChecker -verify %s // expected-no-diagnostics #include "mock-types.h" class Node { public: Node* nextSibling() const; void ref() const; void deref() const; }; static void removeDetachedChildren(Node* firstChild) { for (RefPtr child = firstChild; child; child = child->nextSibling()); }