Skip to content

Commit

Permalink
Support clang 18 (#801)
Browse files Browse the repository at this point in the history
* Bump fmt

* Update other files

* Fix fmt::join error
  • Loading branch information
rmboyce authored Jan 26, 2025
1 parent 3e93325 commit 45bdaaf
Show file tree
Hide file tree
Showing 221 changed files with 20,196 additions and 46,351 deletions.
1 change: 1 addition & 0 deletions src/common/util/string_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "common/util/string_util.h"
#include "fmt/format.h"
#include "fmt/ranges.h"

namespace bustub {

Expand Down
1 change: 1 addition & 0 deletions src/include/binder/expressions/bound_column_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "binder/bound_expression.h"
#include "common/macros.h"
#include "fmt/ranges.h"

namespace bustub {

Expand Down
1 change: 1 addition & 0 deletions src/include/execution/expressions/array_expression.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include "common/exception.h"
#include "execution/expressions/abstract_expression.h"
#include "fmt/ranges.h"
#include "type/value_factory.h"

namespace bustub {
Expand Down
1 change: 1 addition & 0 deletions src/primer/orset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <vector>
#include "common/exception.h"
#include "fmt/format.h"
#include "fmt/ranges.h"

namespace bustub {

Expand Down
2 changes: 1 addition & 1 deletion src/type/timestamp_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ auto TimestampType::ToString(const Value &val) const -> std::string {
tm /= 100000;
auto year = static_cast<uint16_t>(tm % 10000);
tm /= 10000;
auto tz = static_cast<int>(tm % 27);
auto tz = static_cast<int8_t>(tm % 27);
tz -= 12;
tm /= 27;
auto day = static_cast<uint16_t>(tm % 32);
Expand Down
1 change: 1 addition & 0 deletions src/type/vector_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include "common/exception.h"
#include "common/macros.h"
#include "fmt/ranges.h"
#include "type/type_id.h"
#include "type/type_util.h"
#include "type/vector_type.h"
Expand Down
1 change: 1 addition & 0 deletions test/txn/txn_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "execution/execution_common.h"
#include "fmt/core.h"
#include "fmt/format.h"
#include "fmt/ranges.h"
#include "gtest/gtest.h"
#include "storage/disk/disk_manager_memory.h"
#include "storage/index/b_plus_tree.h"
Expand Down
6 changes: 6 additions & 0 deletions third_party/fmt/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ IndentPPDirectives: AfterHash
IndentCaseLabels: false
AlwaysBreakTemplateDeclarations: false
DerivePointerAlignment: false
AllowShortCaseLabelsOnASingleLine: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCaseColons: false
Loading

0 comments on commit 45bdaaf

Please sign in to comment.