Open Gnimuc opened 4 weeks ago
How to tell clang-tidy to ignore the CXCppInterOp.h
? It's a C header and should not use any C++ stuff.
I feel like this PR is also addressing https://github.com/compiler-research/CPyCppyy/issues/8 to some extent. Maybe we can use the momentum gained here..
Attention: Patch coverage is 49.47245%
with 431 lines
in your changes missing coverage. Please review.
Project coverage is 66.79%. Comparing base (
e0fa91e
) to head (4d0eaab
).:exclamation: There is a different number of reports uploaded between BASE (e0fa91e) and HEAD (4d0eaab). Click for more details.
HEAD has 21 uploads less than BASE
| Flag | BASE (e0fa91e) | HEAD (4d0eaab) | |------|------|------| ||22|1|
TODO:
void AddSearchPath(const char *dir, bool isUser, bool prepend);
const char* GetResourceDir();
void AddIncludePath(const char *dir);
int Declare(const char* code, bool silent);
int Process(const char *code);
intptr_t Evaluate(const char *code, bool *HadError/*=nullptr*/);
std::string LookupLibrary(const char* lib_name);
bool LoadLibrary(const char* lib_stem, bool lookup);
void UnloadLibrary(const char* lib_stem);
std::string SearchLibrariesForSymbol(const char* mangled_name, bool search_system /*true*/);
std::string ObjToString(const char *type, void *obj);
void Destruct(TCppObject_t This, TCppScope_t scope, bool withFree /*=true*/);
TCppFuncAddr_t GetFunctionAddress(const char* mangled_name);
CPPINTEROP_API JitCall MakeFunctionCallable(TCppConstFunction_t func);
intptr_t GetVariableOffset(TCppScope_t var);
bool InsertOrReplaceJitSymbol(const char* linker_mangled_name, uint64_t address);
Update:
Keeping the C++ API untouched is impossible if we want libclang-styled types. As a result, I reimplemented most of the C++ APIs on the C API side.