What library or framework can I use to parse C++ source code in .NET?

I need to parse C++ source code using C#.

I tried CppAst.net. It seems that it can parse header files, but not source files.

using CppAst;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CppParserCppASTdotNet
{
    class Program
    {
        static void Main(string[] args)
        {
            string cppSourceCode = @"
#include <iostream>
using namespace std;

class HelloWorld {
public:
    void greet() {
        cout << ""Hello, World!"" << endl;
    }
};

int main() {
    HelloWorld obj;
    obj.greet();
    return 0;
}
";

            // Parse a C++ files
            var compilation = CppParser.Parse(cppSourceCode);
            // Print diagnostic messages
            foreach (var message in compilation.Diagnostics.Messages)
                Console.WriteLine(message);

            // Print All enums
            foreach (var cppEnum in compilation.Enums)
                Console.WriteLine(cppEnum);

            // Print All functions
            foreach (var cppFunction in compilation.Functions)
                Console.WriteLine(cppFunction);

            // Print All classes, structs
            foreach (var cppClass in compilation.Classes)
                Console.WriteLine(cppClass);

            // Print All typedefs
            foreach (var cppTypedef in compilation.Typedefs)
                Console.WriteLine(cppTypedef);
        }
    }
}

Ouput

C:UserspcsourcereposCppParserCppASTdotNetCppParserCppASTdotNetbinDebug>CppParserCppASTdotNet.exe
cppast.input(2, 10): warning: non-portable path to file '<IOSTREAM>'; specified path differs in case from file name on disk
#include <iostream>
        -^-

C:Program Files (x86)Microsoft Visual StudioVC98includeutility(81, 10): error: missing 'typename' prior to dependent type name '_It::iterator_category'
C:Program Files (x86)Microsoft Visual StudioVC98includeutility(82, 10): error: missing 'typename' prior to dependent type name '_It::value_type'
C:Program Files (x86)Microsoft Visual StudioVC98includeutility(83, 10): error: missing 'typename' prior to dependent type name '_It::distance_type'
C:Program Files (x86)Microsoft Visual StudioVC98includeutility(224, 32): error: template parameter redefines default argument
C:Program Files (x86)Microsoft Visual StudioVC98includeutility(231, 10): error: missing 'typename' prior to dependent type name '_Tr::int_type'
C:Program Files (x86)Microsoft Visual StudioVC98includeutility(289, 32): error: template parameter redefines default argument
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(25, 10): error: missing 'typename' prior to dependent type name '_A::size_type'
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(26, 10): error: missing 'typename' prior to dependent type name '_A::difference_type'
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(27, 10): error: missing 'typename' prior to dependent type name '_A::pointer'
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(28, 10): error: missing 'typename' prior to dependent type name '_A::const_pointer'
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(29, 10): error: missing 'typename' prior to dependent type name '_A::reference'
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(30, 10): error: missing 'typename' prior to dependent type name '_A::const_reference'
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(31, 10): error: missing 'typename' prior to dependent type name '_A::value_type'
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(32, 10): error: missing 'typename' prior to dependent type name '_A::pointer'
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(33, 10): error: missing 'typename' prior to dependent type name '_A::const_pointer'
C:Program Files (x86)Microsoft Visual StudioVC98includexstring(599, 8): error: missing 'typename' prior to dependent type name 'basic_string<_E, _Tr, _A>::size_type'
C:Program Files (x86)Microsoft Visual StudioVC98includexlocale(296, 15): error: template specialization requires 'template<>'
C:Program Files (x86)Microsoft Visual StudioVC98includexlocale(519, 15): error: template specialization requires 'template<>'
C:Program Files (x86)Microsoft Visual StudioVC98includestreambuf(16, 32): error: template parameter redefines default argument
(0, 0): error: too many errors emitted, stopping now
cppast.input(1, 1): warning: Compilation aborted due to one or more errors listed above.

C:UserspcsourcereposCppParserCppASTdotNetCppParserCppASTdotNetbinDebug>

How can I parse C++ source code in .NET?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật