Skip to content

Commit

Permalink
Removing Debugger.Break calls from the repository (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding authored Nov 11, 2019
1 parent e99347a commit cb7256b
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 23 deletions.
5 changes: 0 additions & 5 deletions sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,6 @@ private void AddDiagnostic(DiagnosticLevel level, string message, Cursor cursor)
}

_diagnostics.Add(diagnostic);

if (level != DiagnosticLevel.Info)
{
Debugger.Break();
}
}

private void AddNativeTypeNameAttribute(string nativeTypeName, string prefix = null, string postfix = null, string attributePrefix = null)
Expand Down
2 changes: 0 additions & 2 deletions sources/ClangSharp/Cursors/Attrs/Attr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ private protected Attr(CXCursor handle, CXCursorKind expectedKind) : base(handle
default:
{
Debug.WriteLine($"Unhandled attribute kind: {handle.KindSpelling}.");
Debugger.Break();

result = new Attr(handle, handle.kind);
break;
}
Expand Down
2 changes: 0 additions & 2 deletions sources/ClangSharp/Cursors/Cursor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ internal static Cursor Create(CXCursor handle)
else
{
Debug.WriteLine($"Unhandled cursor kind: {handle.KindSpelling}.");
Debugger.Break();

result = new Cursor(handle, handle.Kind);
}

Expand Down
2 changes: 0 additions & 2 deletions sources/ClangSharp/Cursors/Decls/Decl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ private protected Decl(CXCursor handle, CXCursorKind expectedKind) : base(handle
default:
{
Debug.WriteLine($"Unhandled declaration kind: {handle.KindSpelling}.");
Debugger.Break();

result = new Decl(handle, handle.Kind);
break;
}
Expand Down
1 change: 0 additions & 1 deletion sources/ClangSharp/Cursors/Exprs/CompoundAssignOperator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ protected override string GetOpcode()
default:
{
Debug.WriteLine($"Unhandled punctuation kind: {punctuation}.");
Debugger.Break();
break;
}
}
Expand Down
2 changes: 0 additions & 2 deletions sources/ClangSharp/Cursors/Exprs/Expr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ private protected Expr(CXCursor handle, CXCursorKind expectedKind) : base(handle
default:
{
Debug.WriteLine($"Unhandled expression kind: {handle.KindSpelling}.");
Debugger.Break();

result = new Expr(handle, handle.Kind);
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ private protected PreprocessedEntity(CXCursor handle, CXCursorKind expectedKind)
default:
{
Debug.WriteLine($"Unhandled preprocessing kind: {handle.KindSpelling}.");
Debugger.Break();

result = new PreprocessedEntity(handle, handle.Kind);
break;
}
Expand Down
4 changes: 1 addition & 3 deletions sources/ClangSharp/Cursors/Refs/Ref.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ private protected Ref(CXCursor handle, CXCursorKind expectedKind) : base(handle,

default:
{
// Debug.WriteLine($"Unhandled reference kind: {handle.KindSpelling}.");
// Debugger.Break();

Debug.WriteLine($"Unhandled reference kind: {handle.KindSpelling}.");
result = new Ref(handle, handle.Kind);
break;
}
Expand Down
2 changes: 0 additions & 2 deletions sources/ClangSharp/Cursors/Stmts/Stmt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ private protected Stmt(CXCursor handle, CXCursorKind expectedKind) : base(handle
default:
{
Debug.WriteLine($"Unhandled statement kind: {handle.KindSpelling}.");
Debugger.Break();

result = new Stmt(handle, handle.Kind);
break;
}
Expand Down
2 changes: 0 additions & 2 deletions sources/ClangSharp/Types/Type.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ internal static Type Create(CXType handle)
default:
{
Debug.WriteLine($"Unhandled type kind: {handle.KindSpelling}.");
Debugger.Break();

result = new Type(handle, handle.kind);
break;
}
Expand Down

0 comments on commit cb7256b

Please sign in to comment.