From 4fad4e23f819b126369f681d24835b0e2c3d0d5e Mon Sep 17 00:00:00 2001 From: Denis Silakov Date: Mon, 25 Dec 2023 13:07:22 +0300 Subject: [PATCH] Fix clang-tidy linting exception for ecma-interpreter-inl.h 'NOLINTNEXTLINE' doesn't work as expected in Ubuntu 2\2.04 Signed-off-by: Denis Silakov --- runtime/interpreter/ecma-interpreter-inl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/interpreter/ecma-interpreter-inl.h b/runtime/interpreter/ecma-interpreter-inl.h index 7c1c4f0a5..3bd6527fa 100644 --- a/runtime/interpreter/ecma-interpreter-inl.h +++ b/runtime/interpreter/ecma-interpreter-inl.h @@ -591,9 +591,10 @@ public: } } - // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) + // NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic) INTRINSIC_CALL_CHECK_SETACC(intrinsics::NewobjDynrange(thread, num_range_args - 2U, ctor.GetRawData(), new_target.GetRawData(), range_args + 2U)); + // NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic) this->template MoveToNextInst(); } -- Gitee