xoofx / xoofx/CppAst.NET

Support for extra/extended syntaxes?

Open
#68 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C#
Stars
620
Forks
79
Avg merge
14h 27m
Merged PRs (30d)
1

Description

I'm curious if this has built-in support for extended C++ syntaxes such as Microsoft's extras ... and are there any specific considerations that need to be made for things like C++/CLR, C++/Cx, C++/WinRT headers, etc? Any difficulties with quirky COM-related code in Win32 headers? Or does it just process all of it just fine?

I was actually about to end up having to write one of these myself, from scratch, but then decided to look here first and see if my favorite person to steal from already had a solution available to use and, as I'd hoped, you already had a whole AST system defined. Looks like ClangSharp is providing the back-end service for it, which is a project I'm very, very interested in but haven't had a chance to use yet. I've been working with CsWin32 and Win32Metadata a bit lately, but I'm definitely very interested in what ClangSharp can do and how it differs from those Microsoft projects. I've been gradually making a custom, lightweight .NET 7 interop wrapper for DirectX 11/12 and have been trying to explore alternative tools, libraries, etc that can benefit my work and add some value ...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or concrete implementation entry point. Start by reviewing the existing Clang/libclang AST system and its handling of C++ headers, then evaluate the listed C++/CLR, C++/Cx, C++/WinRT, and COM-related cases. Done means a decided scope and documented or verified support behavior for the requested syntaxes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, csharp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.