MCPcopy Create free account
hub / github.com/csyonghe/Spire / InitializePreprocessor

Function InitializePreprocessor

Source/SpireCore/Preprocessor.cpp:1732–1740  ·  view source on GitHub ↗

intialize a preprocessor context, using the given sink for errros

Source from the content-addressed store, hash-verified

1730
1731// intialize a preprocessor context, using the given sink for errros
1732static void InitializePreprocessor(
1733 Preprocessor* preprocessor,
1734 DiagnosticSink* sink)
1735{
1736 preprocessor->sink = sink;
1737 preprocessor->includeHandler = NULL;
1738 preprocessor->endOfFileToken.Type = TokenType::EndOfFile;
1739 preprocessor->endOfFileToken.flags = TokenFlag::AtStartOfLine;
1740}
1741
1742// clean up after an environment
1743PreprocessorEnvironment::~PreprocessorEnvironment()

Callers 1

PreprocessSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected