Skip to content

unparseFile

User callable function available if compilation using the backend compiler is not required.

Synopsis

Declared in <src/backend/unparser/unparser.h>

[[visibility("default")]]
void
unparseFile(
    SgFile* file,
    UnparseFormatHelp* unparseHelp = nullptr,
    UnparseDelegate* delegate = nullptr,
    SgScopeStatement* unparseScope = nullptr,
    UnparsePreprocessingInfoRewriteMap const* preprocessingInfoRewrites = nullptr,
    std::string const* outputFilenameOverride = nullptr,
    NameQualificationContext* nameQualifications = nullptr,
    TokenUnparseFrontierContext* tokenFrontiers = nullptr,
    unsigned int physicalFileOccurrence = 0);

Parameters

Name Description
file Base class for files in a project. Stores file metadata and command-line options. SgSourceFile owns the global scope of a source file.
unparseScope This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

Created with MrDocs