Skip to content

Commit b6cadd3

Browse files
authored
Add CPPINTEROP_API in the correct place
1 parent 85313c8 commit b6cadd3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/clang/Interpreter/CppInterOp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,10 @@ namespace Cpp {
563563
TCppIndex_t param_index);
564564

565565
///\returns arity of the operator or kNone
566-
OperatorArity GetOperatorArity(TCppFunction_t op);
566+
CPPINTEROP_API OperatorArity GetOperatorArity(TCppFunction_t op);
567567

568568
///\returns list of operator overloads
569-
void GetOperator(TCppScope_t scope, Operator op,
569+
CPPINTEROP_API void GetOperator(TCppScope_t scope, Operator op,
570570
std::vector<TCppFunction_t>& operators,
571571
OperatorArity kind = kBoth);
572572

lib/Interpreter/CppInterOp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3477,7 +3477,7 @@ namespace Cpp {
34773477
return PI->getNameAsString();
34783478
}
34793479

3480-
CPPINTEROP_API OperatorArity GetOperatorArity(TCppFunction_t op) {
3480+
OperatorArity GetOperatorArity(TCppFunction_t op) {
34813481
Decl* D = static_cast<Decl*>(op);
34823482
if (auto* FD = llvm::dyn_cast<FunctionDecl>(D)) {
34833483
if (FD->isOverloadedOperator()) {
@@ -3501,7 +3501,7 @@ namespace Cpp {
35013501
return (OperatorArity)~0U;
35023502
}
35033503

3504-
CPPINTEROP_API void GetOperator(TCppScope_t scope, Operator op,
3504+
void GetOperator(TCppScope_t scope, Operator op,
35053505
std::vector<TCppFunction_t>& operators, OperatorArity kind) {
35063506
Decl* D = static_cast<Decl*>(scope);
35073507
if (auto* DC = llvm::dyn_cast_or_null<DeclContext>(D)) {

0 commit comments

Comments
 (0)