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