tailwind-config-viewer
tailwind-config-viewer copied to clipboard
Migrate away from libclang and use libtooling instead
Clang's libtooling is the preferred way to access the C++ AST and is much more precise than libclang, which we currently use. libclang deals poorly with macros and has an additional abstraction for source code regions that is convenient, but buggy. On top of this, the LLVM team said that libclang's deficiencies are unlikely to be fixed because fixing them would break the API. Since libtooling is C++, the generator should also be implemented in C++.
Targeting this for Q2
https://github.com/cblichmann/sandboxed-api/tree/clang-tool has an initial implementation