public CXString GetOption(out CXString disable) { fixed(CXString *pDisable = &disable) { return(clang.getDiagnosticOption(this, pDisable)); } }
public void GetFilenames(uint index, out CXString original, out CXString transformed) { fixed(CXString *pOriginal = &original) fixed(CXString * pTransformed = &transformed) { clang.remap_getFilenames(this, index, pOriginal, pTransformed); } }
public void GetPresumedLocation(out CXString fileName, out uint line, out uint column) { fixed(CXString *pFileName = &fileName) fixed(uint *pLine = &line) fixed(uint *pColumn = &column) { clang.getPresumedLocation(this, pFileName, pLine, pColumn); } }
public static CXDiagnosticSet Load(string file, out CXLoadDiag_Error error, out CXString errorString) { using var marshaledFile = new MarshaledString(file); fixed(CXLoadDiag_Error *pError = &error) fixed(CXString * pErrorString = &errorString) { return((CXDiagnosticSet)clang.loadDiagnostics(marshaledFile, pError, pErrorString)); } }
public bool GetIsExternalSymbol(out CXString language, out CXString definedIn, out bool isGenerated) { fixed(CXString *pLanguage = &language) fixed(CXString * pDefinedIn = &definedIn) { uint isGeneratedOut; var result = clang.Cursor_isExternalSymbol(this, pLanguage, pDefinedIn, &isGeneratedOut); isGenerated = isGeneratedOut != 0; return(result != 0); } }
public int GetPlatformAvailability(out bool alwaysDeprecated, out CXString deprecatedMessage, out bool alwaysUnavailable, out CXString unavailableMessage, Span <CXPlatformAvailability> availability) { fixed(CXString *pDeprecatedMessage = &deprecatedMessage) fixed(CXString * pUnavailableMessage = &unavailableMessage) fixed(CXPlatformAvailability * pAvailability = availability) { int alwaysDeprecatedOut; int alwaysUnavailableOut; var result = clang.getCursorPlatformAvailability(this, &alwaysDeprecatedOut, pDeprecatedMessage, &alwaysUnavailableOut, pUnavailableMessage, pAvailability, availability.Length); alwaysDeprecated = alwaysDeprecatedOut != 0; alwaysUnavailable = alwaysUnavailableOut != 0; return(result); } }
public static CXString ConstructUsr_ObjCProperty(string property, CXString classUsr) { using var marshaledProperty = new MarshaledString(property); return(clang.constructUSR_ObjCProperty(marshaledProperty, classUsr)); }
public static CXString ConstructUsr_ObjCMethod(string name, bool isInstanceMethod, CXString classUsr) { using var marshaledName = new MarshaledString(name); return(clang.constructUSR_ObjCMethod(marshaledName, isInstanceMethod ? 1u : 0u, classUsr)); }
public static CXString ConstructUsr_ObjCIvar(string name, CXString classUsr) { using var marshaledName = new MarshaledString(name); return(clang.constructUSR_ObjCIvar(marshaledName, classUsr)); }