Debian Codegraph @

clang/test/Analysis/Checkers/WebKit/mock-system-header.h

raw
1 #pragma clang system_header
2
3 template <typename T, typename CreateFunction>
4 void callMethod(CreateFunction createFunction) {
5 createFunction()->method();
6 }
7
8 template <typename T, typename CreateFunction>
9 inline void localVar(CreateFunction createFunction) {
10 T* obj = createFunction();
11 obj->method();
12 }
13
14 template <typename T>
15 struct MemberVariable {
16 T* obj { nullptr };
17 };