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
+1 -1
View File
@@ -27,7 +27,7 @@ typedef struct FileInfos {
// .cib
typedef struct CourseInitEntry {
/* 00 */ const char name[16];
/* 00 */ char name[16];
/* 10 */ STRUCT_PAD(0x10, 0x24);
} CourseInitEntry; // size = 0x24
+1 -1
View File
@@ -2,7 +2,7 @@
#define GLOBAL_H
// Prevent the IDE from reporting errors that the compiler/linker won't report
#ifdef __INTELLISENSE__
#ifndef __MWERKS__
#endif
// start of thumb region, using thumb instructions
+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;