Skip to content

Commit

Permalink
Merge pull request #157 from jianlingzhong/clangtidy
Browse files Browse the repository at this point in the history
Fix clang tidy errors
  • Loading branch information
jeaye authored Jan 1, 2025
2 parents 7eacef4 + d4df695 commit db409ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler+runtime/src/cpp/jank/c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ extern "C"
jank_object_ptr jank_list_create(uint64_t const size, ...)
{
/* NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) */
va_list args;
va_list args{};
va_start(args, size);

native_vector<object_ptr> v;
Expand All @@ -414,7 +414,7 @@ extern "C"
jank_object_ptr jank_vector_create(uint64_t const size, ...)
{
/* NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) */
va_list args;
va_list args{};
va_start(args, size);

obj::transient_vector trans;
Expand All @@ -433,7 +433,7 @@ extern "C"
jank_object_ptr jank_map_create(uint64_t const pairs, ...)
{
/* NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) */
va_list args;
va_list args{};
va_start(args, pairs);

/* TODO: Could optimize to build an array map, if it's small enough. */
Expand All @@ -454,7 +454,7 @@ extern "C"
jank_object_ptr jank_set_create(uint64_t const size, ...)
{
/* NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) */
va_list args;
va_list args{};
va_start(args, size);

obj::transient_hash_set trans;
Expand Down

0 comments on commit db409ea

Please sign in to comment.