tailwind-config-viewer icon indicating copy to clipboard operation
tailwind-config-viewer copied to clipboard

Migrate away from libclang and use libtooling instead

Open cblichmann opened this issue 6 years ago • 2 comments

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++.

cblichmann avatar Jul 01 '19 09:07 cblichmann

Targeting this for Q2

cblichmann avatar Mar 13 '20 17:03 cblichmann

https://github.com/cblichmann/sandboxed-api/tree/clang-tool has an initial implementation

cblichmann avatar Apr 28 '20 10:04 cblichmann