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

Predicate isScalarType03

Holds if t is a scalar type, according to the rules specified in C++03 3.9(10):

Arithmetic types (3.9.1), enumeration types, pointer types, and pointer to member types (3.9.2), and cv-qualified versions of these types (3.9.3) are collectively called scalar types.

Import path

import semmle.code.cpp.PODType03
predicate isScalarType03(Type t)