Skip to content

Commit 058795e

Browse files
committed
Position attributes
1 parent 923c885 commit 058795e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

clang/lib/Interpreter/InterpreterValuePrinter.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -640,17 +640,15 @@ llvm::Expected<Expr *> Interpreter::convertExprToValue(Expr *E) {
640640
using namespace clang;
641641

642642
// Temporary rvalue struct that need special care.
643-
REPL_EXTERNAL_VISIBILITY extern "C" void *
644-
__clang_Interpreter_SetValueWithAlloc(void *This, void *OutVal,
645-
void *OpaqueType) {
643+
extern "C" void *REPL_EXTERNAL_VISIBILITY __clang_Interpreter_SetValueWithAlloc(
644+
void *This, void *OutVal, void *OpaqueType) {
646645
Value &VRef = *(Value *)OutVal;
647646
VRef = Value(static_cast<Interpreter *>(This), OpaqueType);
648647
return VRef.getPtr();
649648
}
650649

651-
REPL_EXTERNAL_VISIBILITY extern "C" void
652-
__clang_Interpreter_SetValueNoAlloc(void *This, void *OutVal, void *OpaqueType,
653-
...) {
650+
extern "C" void REPL_EXTERNAL_VISIBILITY __clang_Interpreter_SetValueNoAlloc(
651+
void *This, void *OutVal, void *OpaqueType, ...) {
654652
Value &VRef = *(Value *)OutVal;
655653
Interpreter *I = static_cast<Interpreter *>(This);
656654
VRef = Value(I, OpaqueType);
@@ -732,7 +730,7 @@ __clang_Interpreter_SetValueNoAlloc(void *This, void *OutVal, void *OpaqueType,
732730
// definition in the interpreter runtime. We should move it in a runtime header
733731
// which gets included by the interpreter and here.
734732
struct __clang_Interpreter_NewTag {};
735-
REPL_EXTERNAL_VISIBILITY void *
733+
void *REPL_EXTERNAL_VISIBILITY
736734
operator new(size_t __sz, void *__p, __clang_Interpreter_NewTag) noexcept {
737735
// Just forward to the standard operator placement new.
738736
return operator new(__sz, __p);

0 commit comments

Comments
 (0)