Skip to content

Commit fc309a6

Browse files
committed
Reorder CallArg fields by size
1 parent 49ef2b1 commit fc309a6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cpp2rust/converter/converter.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,18 +225,18 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
225225
std::optional<TempMaterializationCtx> ConvertCallExpr(clang::CallExpr *expr);
226226

227227
struct CallArg {
228-
enum class Kind {
228+
enum class Kind : int8_t {
229229
Hoisted,
230230
Inline,
231231
Materialized,
232232
};
233233

234-
clang::Expr *expr;
235-
Kind kind;
236234
std::string param_name;
235+
std::string ref_temp_name;
237236
clang::QualType param_type;
237+
clang::Expr *expr;
238238
bool has_default;
239-
std::string ref_temp_name;
239+
Kind kind;
240240
};
241241

242242
struct CallInfo {

0 commit comments

Comments
 (0)