Skip to content

SgNodeHelper::locationAndSourceCodeToString

returns location (consisting of filename, line, column) and source code of unparsed node in one string. Abbreviates fileName and unparsed source if too long (defaults are 30,20)

Synopsis

Declared in <src/midend/abstractLayer/SgNodeHelper.h>

std::string
locationAndSourceCodeToString(
    SgNode* node,
    size_t maxFileNameLength = 30,
    size_t maxSourceLength = 20);

Parameters

Name

Description

node

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs