Skip to content

Commit a421ad4

Browse files
committed
clang-format
1 parent 16b620b commit a421ad4

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

cpp2rust/ast_consumer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class ASTConsumer : public clang::ASTConsumer {
1717
explicit ASTConsumer(std::string &rs_code, Model model, bool first,
1818
clang::CompilerInstance &CI,
1919
const std::string &rules_dir)
20-
: rs_code_(rs_code), model_(model), first_(first),
21-
CI_(CI), rules_dir_(rules_dir) {}
20+
: rs_code_(rs_code), model_(model), first_(first), CI_(CI),
21+
rules_dir_(rules_dir) {}
2222

2323
void HandleTranslationUnit(clang::ASTContext &ctx) override;
2424

cpp2rust/converter/converter.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
2828
const char *keyword_mut = "mut",
2929
const char *keyword_ptr_decay = ".as_mut_ptr()",
3030
const char *keyword_const_fn = keyword::kConst)
31-
: rs_code_(&rs_code), ctx_(ctx),
32-
keyword_unsafe_(keyword_unsafe), keyword_mut_(keyword_mut),
33-
keyword_ptr_decay_(keyword_ptr_decay),
31+
: rs_code_(&rs_code), ctx_(ctx), keyword_unsafe_(keyword_unsafe),
32+
keyword_mut_(keyword_mut), keyword_ptr_decay_(keyword_ptr_decay),
3433
keyword_const_fn_(keyword_const_fn) {}
3534

3635
virtual ~Converter() = default;

cpp2rust/frontend_action.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class FrontendAction : public clang::ASTFrontendAction {
1919
public:
2020
explicit FrontendAction(std::string &rs_code, Model model, bool first,
2121
const std::string &rules_dir)
22-
: rs_code_(rs_code), model_(model), first_(first),
23-
rules_dir_(rules_dir) {}
22+
: rs_code_(rs_code), model_(model), first_(first), rules_dir_(rules_dir) {
23+
}
2424

2525
std::unique_ptr<clang::ASTConsumer>
2626
CreateASTConsumer(clang::CompilerInstance &CI,

0 commit comments

Comments
 (0)