From 85244e8bc2702f9a46782c5075b832b7c1d96900 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 1 Aug 2017 13:49:57 -0700 Subject: Fix misc-macro-parentheses warnings in system/core. Add NOLINT comment to work around clang-tidy error in checking macro arguments used in type expressions. Bug: 28705665 Test: make with WITH_TIDY=1 WITH_TIDY_CHECKS=-*,misc-macro-* \ WITH_TIDY_FLAGS=-header-filter=system/core/.* Change-Id: I7619978c1804e151a11a8b0477e80076bcf21cab --- libutils/include/utils/Singleton.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libutils') diff --git a/libutils/include/utils/Singleton.h b/libutils/include/utils/Singleton.h index a989a4703..abb72f510 100644 --- a/libutils/include/utils/Singleton.h +++ b/libutils/include/utils/Singleton.h @@ -82,7 +82,7 @@ private: #define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \ template<> ::android::Mutex \ (::android::Singleton< TYPE >::sLock)(::android::Mutex::PRIVATE); \ - template<> TYPE* ::android::Singleton< TYPE >::sInstance(0); \ + template<> TYPE* ::android::Singleton< TYPE >::sInstance(0); /* NOLINT */ \ template class ::android::Singleton< TYPE >; -- cgit v1.2.3