Skip to content

SageInterface::insertHeader

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

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

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

Return Value

For preprocessing information including source comments, include , if, define, etc

Parameters

Name

Description

position

MK: Enum type to store if the directive goes before or after the corresponding line of source code

Created with MrDocs