CppInterOp
C++ Language Interoperability Layer
Loading...
Searching...
No Matches
Functions
CXCppInterOp.h File Reference
#include "CppInterOp/CppInterOpTypes.h"
#include "CppInterOp/CXCppInterOpDecl.inc"
Include dependency graph for CXCppInterOp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CPPINTEROP_API intptr_t cppinterop_Evaluate (const char *code, bool *HadError)
 C-ABI overload of Cpp::Evaluate.
 
CPPINTEROP_API CppInterOpArray cppinterop_GetClassTemplatedMethods (const char *name, CppConstDeclRef parent)
 Returns the templated method scopes inside parent matching name.
 

Function Documentation

◆ cppinterop_Evaluate()

CPPINTEROP_API intptr_t cppinterop_Evaluate ( const char *  code,
bool *  HadError 
)

C-ABI overload of Cpp::Evaluate.

Returns the execution result as a raw intptr_t bit pattern; on parse error or no-value-after- success writes true to *HadError (if non-null) and returns ~0UL. The Box-returning C++ overload is marked NoCWrapper.

Definition at line 60 of file CXCppInterOp.cpp.

References Cpp::Evaluate().

◆ cppinterop_GetClassTemplatedMethods()

CPPINTEROP_API CppInterOpArray cppinterop_GetClassTemplatedMethods ( const char *  name,
CppConstDeclRef  parent 
)

Returns the templated method scopes inside parent matching name.

The bool-return-with-vector-outparam shape is not expressible by the tablegen wrapper emitter; callers check arr.size > 0 to detect "no matches".

Definition at line 67 of file CXCppInterOp.cpp.

References Cpp::GetClassTemplatedMethods().