Skip to content

Commit d40bfb7

Browse files
author
Cameron Custer
committed
suppress clang-tidy suspicious-call-argument false positive in min_plus dnc; generalize NOLINT strip in update_main
1 parent fe7a598 commit d40bfb7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

library/convolution/min_plus_convolution_convex_and_arbitrary.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ vi min_plus(const vi& convex, const vi& arbitrary) {
2323
}
2424
}
2525
dnc(res_le, mid_res, arb_le, min(arb_ri, op_arb + 1));
26+
// NOLINTNEXTLINE(readability-suspicious-call-argument)
2627
dnc(mid_res + 1, res_ri, op_arb, arb_ri);
2728
};
2829
dnc(0, n + m - 1, 0, m);

tests/scripts/update_main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ git submodule update
1212
echo "DON'T PUSH ANY OF THESE CHANGES TO THE REPO!!!!!!!!"
1313

1414
# remove NOLINTNEXTLINE comments
15-
sed --in-place '/^\/\/ NOLINTNEXTLINE(readability-identifier-naming)$/d' ../library/**/*.hpp
15+
sed --in-place '/^ *\/\/ NOLINTNEXTLINE(.*)$/d' ../library/**/*.hpp
1616

1717
# to copy files like template.cpp, *.sh, *.png, *.md to root directory; so they exist in main branch
1818
# also to create all directories (cpp command below fails if destination path isn't created)

0 commit comments

Comments
 (0)