MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / ArrayInitCodeGenerator

Class ArrayInitCodeGenerator

CodeGenerator.cpp:121–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119//-----------------------------------------------------------------------------
120
121class ArrayInitCodeGenerator final : public CodeGenerator
122{
123 const uint64_t mIndex;
124
125public:
126 ArrayInitCodeGenerator(OutputFormatHelper& _outputFormatHelper, const uint64_t index)
127 : CodeGenerator{_outputFormatHelper}
128 , mIndex{index}
129 {
130 }
131
132 using CodeGenerator::InsertArg;
133 void InsertArg(const ArrayInitIndexExpr*) override { mOutputFormatHelper.Append(mIndex); }
134};
135//-----------------------------------------------------------------------------
136
137/// Handling specialties for decomposition declarations.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected