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
+3 -3
View File
@@ -11,7 +11,9 @@ namespace Metrowerks {
namespace detail {
#ifdef DECOMP_IDE_FLAG
#if __MWERKS__
typedef short double short_double;
#else
#define __builtin_ntype(T) (detail::ntype) 0
#define __builtin_align(T) 0
#define __builtin_is_pod(T) 0
@@ -29,8 +31,6 @@ namespace Metrowerks {
#define __builtin_has_virtual_destructor(T) 0
typedef double short_double;
typedef double __vec2x32float__;
#else
typedef short double short_double;
#endif
enum trivial_member {
@@ -16,10 +16,10 @@ namespace std {
static true_type test(To) { __MWERKS_NOEVAL; }
static false_type test(...) { __MWERKS_NOEVAL; }
#ifdef DECOMP_IDE_FLAG
typedef false_type type;
#if __MWERKS__
typedef __decltype__(test(declval<From>())) type;
#else
typedef __decltype__(test(declval<From>())) type;
typedef false_type type;
#endif
};
@@ -28,10 +28,10 @@ namespace std {
static true_type test(const volatile Base*) { __MWERKS_NOEVAL; }
static false_type test(const volatile void*) { __MWERKS_NOEVAL; }
#ifdef DECOMP_IDE_FLAG
typedef false_type type;
#if __MWERKS__
typedef __decltype__(test(declval<Derived*>())) type;
#else
typedef __decltype__(test(declval<Derived*>())) type;
typedef false_type type;
#endif
};