Skip to content

SageInterface::insertHeader

insertHeader overloads

Synopses

Declared in <SageIII/sageInterface/sageInterface.h>

Insert #include "filename" or #include <filename> (system header) into the global scope containing the current scope, right after other #include XXX.

[[visibility]]
PreprocessingInfo*
insertHeader(
    std::string const& filename,
    PreprocessingInfo::RelativePositionType position,
    bool isSystemHeader,
    SgScopeStatement* scope);

Insert #include "filename" or #include <filename> (system header) onto the global scope of a source file, add to be the last #include .. by default among existing headers, Or as the first header. Recommended for use.

[[visibility]]
PreprocessingInfo*
insertHeader(
    SgSourceFile* source_file,
    std::string const& header_file_name,
    bool isSystemHeader,
    bool asLastHeader);

Insert #include "filename" or #include <filename> (system header) onto the global scope of a source file

[[visibility]]
PreprocessingInfo*
insertHeader(
    SgSourceFile* source_file,
    std::string const& header_file_name,
    bool isSystemHeader = false,
    PreprocessingInfo::RelativePositionType position = PreprocessingInfo::before);

Created with MrDocs