Skip to content

Trying to support clang 15 #1723

@you74674

Description

@you74674

I see there are some commits about vs2022, so I wonder if there will be support for clang 15?
Recently I found that the latest vs2022 seems to require clang 15, which doesn't work with current CppSharp.
(_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH works but it looks unsafe)
I have built llvm 15.0.7 and so far the result CppSharp works with my own usecase,
but I don't know if my change make sense since I don't understand the internal part of CppSharp.
Here is my fork with the changes, and I have some questions:

  1. I update premake to official latest version which support vs2022 action. Is there anything required from the InteropAlliance fork?
  2. Latest llvm changes some fields and functions, is my change correct?
  3. There seems to be some class that mirrors class in llvm, for example, clang::CoroutineBodyStmt doesn't have getResultDecl anymore, so I guess AST::CoroutineBodyStmt should also be updated. But it also appears a lot in src/CppParser/Bindings/CSharp, and those files are auto generated. How to update them?
  4. These changes are not compatible with clang 14, how should we deal with this part?(if we are going to merge this or something)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions