Skip to content

Commit

Permalink
Clean accidental diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
c committed Jun 4, 2024
1 parent c2d8a89 commit cf4fa44
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CppSharp.CppParser.Native/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ project(
'cpp_std=c++17',
])

# TODO: relative paths

llvm_include_directories = include_directories([
# Public headers
'/home/c/dev/CppSharp/llvm/llvm-install/include',
Expand Down
2 changes: 1 addition & 1 deletion CppSharp.CppParser/CppSharp.CppParser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
<ProjectReference Include="../CppSharp.Runtime/CppSharp.Runtime.csproj" />
</ItemGroup>

<!-- NETCoreSdkRuntimeIdentifier -->
<!-- TODO: select linux/win/osx based on config -->

</Project>
5 changes: 0 additions & 5 deletions CppSharp.Generator/TypeMapDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,13 @@ public bool FindTypeMap(Type type, GeneratorKind kind, out TypeMap typeMap)
var specialization = template.GetClassTemplateSpecialization();
if (specialization != null &&
FindTypeMap(specialization, kind, out typeMap))
{
Console.WriteLine("68");
return true;
}

if (template.Template.TemplatedDecl != null)
{
if (FindTypeMap(template.Template.TemplatedDecl, kind, out typeMap))
{
typeMap.Type = type;
Console.WriteLine("75");
return true;
}

Expand Down Expand Up @@ -112,7 +108,6 @@ public bool FindTypeMap(Type type, GeneratorKind kind, out TypeMap typeMap)
{
typeMap.Type = type;
typeMaps[type] = typeMap;
Console.WriteLine("113");
return true;
}
}
Expand Down
6 changes: 0 additions & 6 deletions CppSharp.Parser.Bootstrap/Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class Bootstrap : ILibrary
private static string GetCppSharpPath()
{
return Environment.CurrentDirectory;
// return Path.Combine(, "../..");
}

private static string GetLLVMInstallDirectory()
Expand Down Expand Up @@ -51,11 +50,6 @@ public void Setup(Driver driver)
Path.Combine(llvmPath, "include"),
});

foreach (var includeDir in module.IncludeDirs)
{
Console.WriteLine($"{includeDir}");
}

module.Headers.AddRange(new[]
{
"clang/AST/Stmt.h",
Expand Down

0 comments on commit cf4fa44

Please sign in to comment.