Method CreateCompileUnit
CreateCompileUnit(SourceLanguage, string, LazyEncodedString?, bool, LazyEncodedString?, uint)
Creates a new DICompileUnit
public DICompileUnit CreateCompileUnit(SourceLanguage language, string sourceFilePath, LazyEncodedString? producer, bool optimized = false, LazyEncodedString? compilationFlags = null, uint runtimeVersion = 0)
Parameters
language
SourceLanguageSourceLanguage for the compilation unit
sourceFilePath
stringFull path to the source file of this compilation unit
producer
LazyEncodedStringName of the application processing the compilation unit
optimized
boolFlag to indicate if the code in this compilation unit is optimized
compilationFlags
LazyEncodedStringAdditional tool specific flags
runtimeVersion
uintRuntime version
Returns
CreateCompileUnit(SourceLanguage, LazyEncodedString, LazyEncodedString, LazyEncodedString?, bool, LazyEncodedString?, uint, LazyEncodedString?, LazyEncodedString?)
Creates a new DICompileUnit
public DICompileUnit CreateCompileUnit(SourceLanguage language, LazyEncodedString fileName, LazyEncodedString fileDirectory, LazyEncodedString? producer, bool optimized, LazyEncodedString? compilationFlags, uint runtimeVersion, LazyEncodedString? sysRoot = null, LazyEncodedString? sdk = null)
Parameters
language
SourceLanguageSourceLanguage for the compilation unit
fileName
LazyEncodedStringName of the source file of this compilation unit (without any path)
fileDirectory
LazyEncodedStringPath of the directory containing the file
producer
LazyEncodedStringName of the application processing the compilation unit
optimized
boolFlag to indicate if the code in this compilation unit is optimized
compilationFlags
LazyEncodedStringAdditional tool specific flags
runtimeVersion
uintRuntime version
sysRoot
LazyEncodedStringSystem root for the debug info to use [Default:Empty]
sdk
LazyEncodedStringSDK name for the debug record [Default:Empty]