summaryrefslogtreecommitdiff
path: root/runtime/base/macros.h
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2016-05-11 11:26:48 -0700
committer Chih-Hung Hsieh <chh@google.com> 2016-05-13 10:38:56 -0700
commitfba39972d99701c80bf3beb7451aca508d67593c (patch)
tree0d80ecb6997290140503926b08a72e7418915526 /runtime/base/macros.h
parent718d4e269810c17d03df909c84b2f7bbd4f61fb9 (diff)
Fix misc-macro-parentheses warnings.
* Add parentheses to fix warnings. * Use NOLINT to suppress wrong clang-tidy warnings. Bug: 28705665 Change-Id: Icc8bc9b59583dee0ea17ab83e0ff0383b8599c3e
Diffstat (limited to 'runtime/base/macros.h')
-rw-r--r--runtime/base/macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/base/macros.h b/runtime/base/macros.h
index 7a293c7a08..3c43253e67 100644
--- a/runtime/base/macros.h
+++ b/runtime/base/macros.h
@@ -75,7 +75,7 @@ template<typename T> ART_FRIEND_TEST(test_set_name, individual_test)
ALWAYS_INLINE void* operator new(size_t, void* ptr) noexcept { return ptr; } \
ALWAYS_INLINE void operator delete(void*, void*) noexcept { } \
private: \
- void* operator new(size_t) = delete
+ void* operator new(size_t) = delete // NOLINT
// The arraysize(arr) macro returns the # of elements in an array arr.
// The expression is a compile-time constant, and therefore can be
@@ -135,7 +135,7 @@ char (&ArraySizeHelper(T (&array)[N]))[N];
#define ARRAYSIZE_UNSAFE(a) \
((sizeof(a) / sizeof(*(a))) / static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))
-#define SIZEOF_MEMBER(t, f) sizeof((reinterpret_cast<t*>(4096))->f)
+#define SIZEOF_MEMBER(t, f) sizeof((reinterpret_cast<t*>(4096))->f) // NOLINT
#define OFFSETOF_MEMBER(t, f) \
(reinterpret_cast<uintptr_t>(&reinterpret_cast<t*>(16)->f) - static_cast<uintptr_t>(16u)) // NOLINT