Contenuto principale

Cpp.ConcatenatedString Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the concatenated_string nodes in the syntax tree of your code

Since R2026a

Description

The PQL class ConcatenatedString represents the node concatenated_string in the syntax tree of your code.

// example.cpp
#include <iostream>

int main() {
    const char* s1 = "foo" "bar";        // concatenated string from two string literals
    const char* s2 = R"(baz)" "qux";     // concatenated_string with a raw string + literal
    (void)s1; (void)s2; (void)s3;
    return 0;
}

The initializers "foo" "bar" and R"(baz)" "qux" are concatenated_string nodes that match with this class.

Predicates

expand all

Version History

Introduced in R2026a