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

Method Clear

Source/SpireCore/SpirVCodeGen.cpp:1847–1870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1845 SpirVCodeBuilder CodeGen;
1846
1847 void Clear()
1848 {
1849 Result = nullptr;
1850 CurrentID = 0;
1851 MainFunctionID = 0;
1852 MainFunctionReturnTypeID = 0;
1853 MainFunctionTypeID = 0;
1854 ReturnID = -1;
1855 StackVariableNameToStorageID.Clear();
1856 StackVariableNameToValueID.Clear();
1857 TypeNameToID.Clear();
1858 TypeStorageToTypePointerID.Clear();
1859 FunctionNameToFunctionTypeID.Clear();
1860 FunctionNameToFunctionID.Clear();
1861 ParameterNameToID.Clear();
1862 Dictionary_ConstantIntToID.Clear();
1863 Dictionary_ConstantUIntToID.Clear();
1864 Dictionary_ConstantBoolToID.Clear();
1865 IDInfos.Clear();
1866 StackMergeBlock.Clear();
1867 StackContinueBlock.Clear();
1868 CodeGen.Clear();
1869 InterfaceNameToID.Clear();
1870 }
1871
1872 void ClearBuffer()
1873 {

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected