Browse Source

Minor code formatting improvements.

pull/732/head
Joao Matos 9 years ago
parent
commit
d9f841465c
  1. 10
      src/CLI/Generator.cs
  2. 6
      src/Generator/AST/VTables.cs

10
src/CLI/Generator.cs

@ -1,14 +1,12 @@ @@ -1,14 +1,12 @@
using CppSharp.AST;
using CppSharp.Generators;
using CppSharp.Parser;
using CppSharp.Passes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CppSharp.AST;
using CppSharp.Generators;
using CppSharp.Passes;
using CppSharp.Types;
using CppAbi = CppSharp.Parser.AST.CppAbi;
using CppSharp.Parser;
using CppSharp;
namespace CppSharp
{

6
src/Generator/AST/VTables.cs

@ -19,7 +19,8 @@ namespace CppSharp.AST @@ -19,7 +19,8 @@ namespace CppSharp.AST
}
throw new NotSupportedException(
string.Format("VTable format for {0} is not supported", @class.Layout.ABI.ToString().Split('.').Last())
string.Format("VTable format for {0} is not supported",
@class.Layout.ABI.ToString().Split('.').Last())
);
}
@ -64,7 +65,8 @@ namespace CppSharp.AST @@ -64,7 +65,8 @@ namespace CppSharp.AST
where j >= 0
select j).First();
default:
return @class.Layout.Layout.Components.FindIndex(m => m.Method == function) - ItaniumOffsetToTopAndRTTI;
return @class.Layout.Layout.Components.FindIndex(
m => m.Method == function) - ItaniumOffsetToTopAndRTTI;
}
}

Loading…
Cancel
Save