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

Predicate isAggregateClass03

Holds if c is an aggregate class, according to the rules specified in C++03 8.5.1(1):

An aggregate [class] is … a class (clause 9) with no user-declared constructors (12.1), no private or protected non-static data members (clause 11), no base classes (clause 10), and no virtual functions (10.3).

Import path

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