@@ -166,8 +166,6 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
166166
167167 virtual void ConvertGlobalVarDecl (clang::VarDecl *decl);
168168
169- void ConvertVaListVarDecl (clang::VarDecl *decl);
170-
171169 virtual bool ConvertVarDeclSkipInit (clang::VarDecl *decl);
172170
173171 bool VisitRecordDecl (clang::RecordDecl *decl);
@@ -198,6 +196,8 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
198196
199197 std::string GetMethodName (const clang::CXXMethodDecl *decl);
200198
199+ std::string GetConversionName (const clang::CXXConversionDecl *decl) const ;
200+
201201 virtual std::string GetSelfMaybeWithMut (const clang::CXXMethodDecl *decl);
202202
203203 std::string GetCtorName (clang::CXXConstructorDecl *decl);
@@ -225,7 +225,8 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
225225 virtual bool ThisIsRustPtr () const { return false ; }
226226
227227 virtual void ConvertCXXConstructorBody (clang::CXXConstructorDecl *decl);
228- void EmitConstructorFieldInits (clang::CXXConstructorDecl *decl);
228+ // The object that decl constructs, before its body runs.
229+ void EmitConstructorInit (clang::CXXConstructorDecl *decl);
229230
230231 virtual bool VisitCXXConstructorDecl (clang::CXXConstructorDecl *decl);
231232
@@ -285,7 +286,7 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
285286
286287 const std::string &GetOrMaterialize (
287288 unsigned argument_num,
288- std::function <std::pair<std::string, std::string>(clang::QualType)>
289+ llvm::function_ref <std::pair<std::string, std::string>(clang::QualType)>
289290 materialize_fn);
290291
291292 // str, preceded by the bindings of the temporaries that it refers to.
@@ -388,6 +389,10 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
388389
389390 void EmitArgList (const CallInfo &info);
390391
392+ // The variadic arguments, each followed by a comma, converted to VaArg if
393+ // into_va_arg.
394+ void EmitVariadicArgs (llvm::ArrayRef<clang::Expr *> args, bool into_va_arg);
395+
391396 void EmitCall (CallInfo &&info);
392397
393398 void ConvertGenericCallExpr (clang::CallExpr *expr);
@@ -432,8 +437,6 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
432437
433438 virtual void ConvertVariadicArg (clang::Expr *arg);
434439
435- void DefineImplicitMembers (clang::CXXRecordDecl *decl);
436-
437440 bool VisitCallExpr (clang::CallExpr *expr);
438441
439442 virtual bool VisitIntegerLiteral (clang::IntegerLiteral *expr);
@@ -602,8 +605,6 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
602605 VisitCXXStdInitializerListExpr (clang::CXXStdInitializerListExpr *expr);
603606
604607protected:
605- const clang::Expr *GetParentExpr (const clang::Expr *expr);
606-
607608#define StrCat (...) _StrCat(__FUNCTION__, __LINE__, __VA_ARGS__)
608609
609610 inline bool is_empty (char c) { return false ; }
@@ -681,7 +682,6 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
681682 }
682683
683684 virtual bool Convert (clang::QualType qual_type);
684- virtual bool ConvertMappedType (clang::QualType qual_type);
685685
686686 virtual std::string ConvertPointeeType (clang::QualType ptr_type);
687687
@@ -742,8 +742,6 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
742742 void ConvertParamList (llvm::ArrayRef<clang::ParmVarDecl *> params,
743743 bool is_variadic);
744744
745- virtual void ConvertFunctionQualifiers (clang::FunctionDecl *decl);
746-
747745 virtual void ConvertFunctionReturnType (clang::FunctionDecl *decl);
748746
749747 virtual void ConvertFunctionMain (const clang::FunctionDecl *decl,
0 commit comments