Skip to content

Commit

Permalink
Handle some more decl and stmt kinds in the PInvoke generator (#100)
Browse files Browse the repository at this point in the history
* Updating PInvokeGenerator to use the true kind when visiting cursors

* Adding basic support for parsing C Style and CXX Functional style cast expressions

* Adding a test ensuring CallExpr args are handled correctly

* Ignore StaticAssertDecl

* Adding basic support for CXXBoolLiteralExpr, CXXNullPtrLiteralExpr, and FloatingLiterals

* Ensure that array parameters are translated to pointers
  • Loading branch information
tannergooding committed Nov 19, 2019
1 parent 17abf29 commit 1a307c1
Show file tree
Hide file tree
Showing 13 changed files with 1,450 additions and 862 deletions.
12 changes: 12 additions & 0 deletions sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitAttr.cs
@@ -0,0 +1,12 @@
// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information.

namespace ClangSharp
{
public partial class PInvokeGenerator
{
private void VisitAttr(Attr attr)
{
// We don't consider most attributes particularly important and so we do nothing
}
}
}

0 comments on commit 1a307c1

Please sign in to comment.