Method CreateCompileUnit
CreateCompileUnit(SourceLanguage, string, LazyEncodedString?, bool, LazyEncodedString?, uint)
Creates a new DICompileUnit
DICompileUnit CreateCompileUnit(SourceLanguage language, string sourceFilePath, LazyEncodedString? producer, bool optimized = false, LazyEncodedString? compilationFlags = null, uint runtimeVersion = 0)
Parameters
languageSourceLanguageSourceLanguage for the compilation unit
sourceFilePathstringFull path to the source file of this compilation unit
producerLazyEncodedStringName of the application processing the compilation unit
optimizedboolFlag to indicate if the code in this compilation unit is optimized
compilationFlagsLazyEncodedStringAdditional tool specific flags
runtimeVersionuintRuntime version
Returns
CreateCompileUnit(SourceLanguage, LazyEncodedString, LazyEncodedString, LazyEncodedString?, bool, LazyEncodedString?, uint, LazyEncodedString?, LazyEncodedString?)
Creates a new DICompileUnit
DICompileUnit CreateCompileUnit(SourceLanguage language, LazyEncodedString fileName, LazyEncodedString fileDirectory, LazyEncodedString? producer, bool optimized, LazyEncodedString? compilationFlags, uint runtimeVersion, LazyEncodedString? sysRoot = null, LazyEncodedString? sdk = null)
Parameters
languageSourceLanguageSourceLanguage for the compilation unit
fileNameLazyEncodedStringName of the source file of this compilation unit (without any path)
fileDirectoryLazyEncodedStringPath of the directory containing the file
producerLazyEncodedStringName of the application processing the compilation unit
optimizedboolFlag to indicate if the code in this compilation unit is optimized
compilationFlagsLazyEncodedStringAdditional tool specific flags
runtimeVersionuintRuntime version
sysRootLazyEncodedStringSystem root for the debug info to use [Default:Empty]
sdkLazyEncodedStringSDK name for the debug record [Default:Empty]