Tencent Cloud Developer
Jun 14, 2022 · Fundamentals
Using ClangSharp and libclang for C# Reflection Code Generation and Meta‑Attribute Support
The article demonstrates how to build an offline C# reflection tool using libclang and ClangSharp by parsing C++ headers into an AST, traversing it, generating structured data, and applying Liquid templates, while introducing meta‑attributes via C++ annotate macros for fine‑grained code‑generation control.
CClangSharpTemplate
0 likes · 33 min read