Main Content

Cpp.RawStringLiteral Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the raw_string_literal nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.RawStringLiteral represents the node raw_string_literal in the syntax tree of your code.

// example.cpp
#include <iostream>

int main() {
    const char* s = R"delim(foo\nbar)delim";
    std::cout << s << std::endl;
    return 0;
}

The code contains a C++ raw string literal R"delim(foo\nbar)delim" which corresponds to the raw_string_literal node that Cpp.RawStringLiteral models.

Predicates

expand all

Version History

Introduced in R2026a