Cpp.True Class
Namespace: Cpp
Superclasses: AstNodeProperties
Represents the true nodes in the syntax tree of your code
Since R2026a
Description
The PQL class Cpp.True represents the node true in the syntax tree of your code.
// example.cpp
#include <iostream>
bool foo() {
return true;
}
bool bar = true;
int main() {
std::cout << std::boolalpha << bar << "\n";
return 0;
}The code shows two true tokens: one in return true; and one in bool bar = true; which correspond to Cpp.True nodes in the syntax tree.
Predicates
Version History
Introduced in R2026a