brintos

brintos / llvm-project-archived public Read only

0
0
Text · 381 B · 8b2b467 Raw
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