Skip to content

Commit

Permalink
refactor: Annotate for C++26 attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
oboukli committed Nov 18, 2024
1 parent 0546c57 commit 005cfd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/forfun/evaluate_reverse_polish_notation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ template <std::contiguous_iterator Iter, std::sentinel_for<Iter> Sentinel>
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
auto const sv_end{sv_begin + iter->size()};
// NOLINTNEXTLINE(cppcoreguidelines-init-variables)
int operand;
int operand /*[[indeterminate]]*/;
if (std::from_chars_result const parse_result{
std::from_chars(sv_begin, sv_end, operand)
};
Expand Down Expand Up @@ -126,7 +126,7 @@ template <std::contiguous_iterator Iter, std::sentinel_for<Iter> Sentinel>
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
auto const sv_end{sv_begin + iter->size()};
// NOLINTNEXTLINE(cppcoreguidelines-init-variables)
int operand;
int operand /*[[indeterminate]]*/;
if (std::from_chars_result const parse_result{
std::from_chars(sv_begin, sv_end, operand)
};
Expand Down Expand Up @@ -190,7 +190,7 @@ template <std::contiguous_iterator Iter, std::sentinel_for<Iter> Sentinel>
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
auto const sv_end{sv_begin + iter->size()};
// NOLINTNEXTLINE(cppcoreguidelines-init-variables)
int operand;
int operand /*[[indeterminate]]*/;
if (std::from_chars_result const parse_result{
std::from_chars(sv_begin, sv_end, operand)
};
Expand Down
4 changes: 2 additions & 2 deletions include/forfun/sorting/bubble_sort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ constexpr auto bubble_sort(Iter const begin, Sentinel end) noexcept -> void
}

// NOLINTNEXTLINE(cppcoreguidelines-init-variables)
bool f;
bool f /*[[indeterminate]]*/;
// NOLINTNEXTLINE(cppcoreguidelines-avoid-do-while)
do
{
Expand Down Expand Up @@ -64,7 +64,7 @@ constexpr auto bubble_sort(Iter const begin, Sentinel end) noexcept -> void
}

// NOLINTNEXTLINE(cppcoreguidelines-init-variables)
bool f;
bool f /*[[indeterminate]]*/;
// NOLINTNEXTLINE(cppcoreguidelines-avoid-do-while)
do
{
Expand Down

0 comments on commit 005cfd7

Please sign in to comment.