CodeQL library for C/C++
codeql/cpp-all 0.12.10 (changelog, source)
Search

Predicate isPodClass03

Holds if c is a POD class, according to the rules specified in C++03 9(4):

A POD-struct is an aggregate class that has no non-static data members of type non-POD-struct, non-POD-union (or array of such types) or reference, and has no user-defined copy assignment operator and no user-defined destructor. Similarly, a POD-union is an aggregate union that has no non-static data members of type non-POD-struct, non-POD-union (or array of such types) or reference, and has no user-defined copy assignment operator and no user-defined destructor. A POD class is a class that is either a POD-struct or a POD-union.

Import path

import semmle.code.cpp.PODType03
predicate isPodClass03(Class c)