Skip to content

Commit acac3d0

Browse files
committed
clang-format
1 parent 8a34ee8 commit acac3d0

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎cpp2rust/converter/rules/rules_loader.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const llvm::json::Object &CxxIndex() {
273273
}
274274

275275
std::string BuildRulesEpilogue(const std::unordered_set<std::string> &keys,
276-
bool is_cxx) {
276+
bool is_cxx) {
277277
std::string out;
278278
const auto &index = is_cxx ? CxxIndex() : CIndex();
279279
auto common = index.getString("common");

‎cpp2rust/rule_preprocessing/cpp_rule_indexer.cpp‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ std::string ClassOf(clang::QualType type) {
5353
return {};
5454
}
5555

56-
void AddRequiredClasses(clang::QualType type, std::unordered_set<std::string> &required) {
56+
void AddRequiredClasses(clang::QualType type,
57+
std::unordered_set<std::string> &required) {
5758
if (type.isNull()) {
5859
return;
5960
}
@@ -105,8 +106,8 @@ void AddRequiredClasses(clang::QualType type, std::unordered_set<std::string> &r
105106
}
106107
}
107108

108-
std::unordered_set<std::string> RequiredClasses(const clang::Decl *rule,
109-
const clang::TypedefNameDecl *alias) {
109+
std::unordered_set<std::string>
110+
RequiredClasses(const clang::Decl *rule, const clang::TypedefNameDecl *alias) {
110111
std::unordered_set<std::string> required;
111112
if (alias) {
112113
AddRequiredClasses(alias->getUnderlyingType(), required);

0 commit comments

Comments
 (0)