Add support for clangd in the python tools (#120)

* initial clangd support through python

* update install instructions

* invert configure.py behavior

* fix oopsie

* fix few issues from clangd

* fix related build issues
This commit is contained in:
Yanis
2026-07-21 19:37:21 +02:00
committed by GitHub
parent 04d20febb1
commit bc04021bc0
15 changed files with 322 additions and 51 deletions
+9 -9
View File
@@ -50,20 +50,20 @@ public:
~AutoInstance() {}
};
#define DECL_INSTANCE_CTOR(T, gpInstance) \
#define DECL_INSTANCE_CTOR(type, gpInstance) \
template <typename T> Instance<T>::Instance() { \
gpInstance = (T *) this; \
gpInstance = (type *) this; \
} \
template class Instance<T>;
template class Instance<type>;
#define DECL_INSTANCE_DTOR(T, gpInstance) \
Instance<T>::~Instance() { \
gpInstance = NULL; \
#define DECL_INSTANCE_DTOR(type, gpInstance) \
template <> Instance<type>::~Instance() { \
gpInstance = NULL; \
}
#define DECL_INSTANCE(T, gpInstance) \
DECL_INSTANCE_CTOR(T, gpInstance) \
DECL_INSTANCE_DTOR(T, gpInstance)
#define DECL_INSTANCE(type, gpInstance) \
DECL_INSTANCE_CTOR(type, gpInstance) \
DECL_INSTANCE_DTOR(type, gpInstance)
template <typename T> struct StaticInstance {
static T sInstance;