From 2be604b200429433dac28ad4bf562d849cda642e Mon Sep 17 00:00:00 2001 From: Stefano Cianciulli Date: Tue, 7 Jun 2022 08:27:24 +0000 Subject: Fix bugprone-macro-parentheses clang-tidy issues This CL also fixes a performance-unnecessary-copy-initialization issue which was present on the master branch and prevented m tidy-art to complete successfully. Test: m tidy-art Bug: 213953102 Change-Id: I821d797be4a866d9e1546e62bafa5a8bb0ac0578 --- runtime/interpreter/unstarted_runtime.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/interpreter/unstarted_runtime.cc') diff --git a/runtime/interpreter/unstarted_runtime.cc b/runtime/interpreter/unstarted_runtime.cc index 62051ee9db..cec6f1dc8d 100644 --- a/runtime/interpreter/unstarted_runtime.cc +++ b/runtime/interpreter/unstarted_runtime.cc @@ -2163,6 +2163,7 @@ using JNIHandler = void(*)(Thread* self, uint32_t* args, JValue* result); +// NOLINTNEXTLINE #define ONE_PLUS(ShortNameIgnored, DescriptorIgnored, NameIgnored, SignatureIgnored) 1 + static constexpr size_t kInvokeHandlersSize = UNSTARTED_RUNTIME_DIRECT_LIST(ONE_PLUS) 0; static constexpr size_t kJniHandlersSize = UNSTARTED_RUNTIME_JNI_LIST(ONE_PLUS) 0; -- cgit v1.2.3-59-g8ed1b