Skip to content

Commit 5c1425d

Browse files
committed
Reorder CallArg fields by size
1 parent dba4b3b commit 5c1425d

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
@@ -220,18 +220,18 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
220220
std::optional<TempMaterializationCtx> ConvertCallExpr(clang::CallExpr *expr);
221221

222222
struct CallArg {
223-
enum class Kind {
223+
enum class Kind : int8_t {
224224
Hoisted,
225225
Inline,
226226
Materialized,
227227
};
228228

229-
clang::Expr *expr;
230-
Kind kind;
231229
std::string param_name;
230+
std::string ref_temp_name;
232231
clang::QualType param_type;
232+
clang::Expr *expr;
233233
bool has_default;
234-
std::string ref_temp_name;
234+
Kind kind;
235235
};
236236

237237
struct CallInfo {

0 commit comments

Comments
 (0)