MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / FunctorCompileOneFile

Class FunctorCompileOneFile

src/SourceCompile/Compiler.cpp:134–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134struct FunctorCompileOneFile {
135 FunctorCompileOneFile(CompileSourceFile* compileSource,
136 CompileSourceFile::Action action)
137 : m_compileSourceFile(compileSource), m_action(action) {}
138
139 int32_t operator()() const {
140#ifdef SURELOG_WITH_PYTHON
141 if (m_compileSourceFile->getCommandLineParser()->pythonListener() ||
142 m_compileSourceFile->getCommandLineParser()
143 ->pythonEvalScriptPerFile()) {
144 PyThreadState* interpState = PythonAPI::initNewInterp();
145 m_compileSourceFile->setPythonInterp(interpState);
146 }
147#endif
148 return m_compileSourceFile->compile(m_action);
149 }
150
151 private:
152 CompileSourceFile* m_compileSourceFile;
153 CompileSourceFile::Action m_action;
154};
155
156bool Compiler::compileOneFile_(CompileSourceFile* compiler,
157 CompileSourceFile::Action action) {

Callers 1

compileFileSet_Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected