зеркало из https://github.com/mono/CppSharp.git
Generate valid C++ for redeclaration of friends
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
This commit is contained in:
Родитель
a69f6d1d6d
Коммит
f44686bda0
|
@ -322,10 +322,7 @@ namespace CppSharp.Passes
|
|||
Write($"{string.Concat(parentsOpen)}");
|
||||
if (function.IsConstExpr)
|
||||
Write("constexpr ");
|
||||
Write(returnType);
|
||||
Write(" ");
|
||||
Write(parentsOpen.Count > 0 ? function.OriginalName : functionName);
|
||||
Write(paramTypes);
|
||||
Write($"{returnType} {function.OriginalName}{paramTypes}");
|
||||
if (functionType.ExceptionSpecType == ExceptionSpecType.BasicNoexcept)
|
||||
Write(" noexcept");
|
||||
WriteLine($";{string.Concat(parentsOpen.Select(_ => " }"))}");
|
||||
|
|
Загрузка…
Ссылка в новой задаче