Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround some bugs in a few boolean returning interop methods #431

Merged
merged 1 commit into from
Mar 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions sources/ClangSharp.Interop/Extensions/CXCursor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ public string DeclKindSpelling

public bool IsConversionFromLambda => clangsharp.Cursor_getIsConversionFromLambda(this) != 0;

public bool IsCopyOrMoveConstructor => clangsharp.Cursor_getIsCopyOrMoveConstructor(this) != 0;
public bool IsCopyOrMoveConstructor => clangsharp.Cursor_getIsCopyOrMoveConstructor(this) == 0;

public bool IsCXXTry => clangsharp.Cursor_getIsCXXTry(this) != 0;

Expand All @@ -916,17 +916,17 @@ public string DeclKindSpelling

public bool IsDefinition => clang.isCursorDefinition(this) != 0;

public bool IsDelegatingConstructor => clangsharp.Cursor_getIsDelegatingConstructor(this) != 0;
public bool IsDelegatingConstructor => clangsharp.Cursor_getIsDelegatingConstructor(this) == 0;

public bool IsDeleted => clangsharp.Cursor_getIsDeleted(this) != 0;
public bool IsDeleted => clangsharp.Cursor_getIsDeleted(this) == 0;

public bool IsDeprecated => clangsharp.Cursor_getIsDeprecated(this) != 0;

public bool IsDynamicCall => clang.Cursor_isDynamicCall(this) != 0;

public bool IsElidable => clangsharp.Cursor_getIsElidable(this) != 0;

public bool IsExplicitlyDefaulted => clangsharp.Cursor_getIsExplicitlyDefaulted(this) != 0;
public bool IsExplicitlyDefaulted => clangsharp.Cursor_getIsExplicitlyDefaulted(this) == 0;

public bool IsExpression => clang.isExpression(Kind) != 0;

Expand All @@ -950,7 +950,7 @@ public string DeclKindSpelling

public bool IsIncomplete => clangsharp.Cursor_getIsIncomplete(this) != 0;

public bool IsInheritingConstructor => clangsharp.Cursor_getIsInheritingConstructor(this) != 0;
public bool IsInheritingConstructor => clangsharp.Cursor_getIsInheritingConstructor(this) == 0;

public bool IsInvalid => clang.isInvalid(Kind) != 0;

Expand Down