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

18 lines
381 B
C++

#pragma clang system_header
template <typename T, typename CreateFunction>
void callMethod(CreateFunction createFunction) {
createFunction()->method();
}
template <typename T, typename CreateFunction>
inline void localVar(CreateFunction createFunction) {
T* obj = createFunction();
obj->method();
}
template <typename T>
struct MemberVariable {
T* obj { nullptr };
};