summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh2017-08-01 15:49:57 -0500
committerChih-hung Hsieh2017-08-01 17:12:57 -0500
commit85244e8bc2702f9a46782c5075b832b7c1d96900 (patch)
treeeffeb66248b4be8136348a877274dc8e3731dbba /libutils/include
parenteb3fa921916f2505d85fe42b780a890f7358f482 (diff)
downloadplatform-system-core-85244e8bc2702f9a46782c5075b832b7c1d96900.tar.gz
platform-system-core-85244e8bc2702f9a46782c5075b832b7c1d96900.tar.xz
platform-system-core-85244e8bc2702f9a46782c5075b832b7c1d96900.zip
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
Diffstat (limited to 'libutils/include')
-rw-r--r--libutils/include/utils/Singleton.h2
1 files changed, 1 insertions, 1 deletions
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:
82#define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \ 82#define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \
83 template<> ::android::Mutex \ 83 template<> ::android::Mutex \
84 (::android::Singleton< TYPE >::sLock)(::android::Mutex::PRIVATE); \ 84 (::android::Singleton< TYPE >::sLock)(::android::Mutex::PRIVATE); \
85 template<> TYPE* ::android::Singleton< TYPE >::sInstance(0); \ 85 template<> TYPE* ::android::Singleton< TYPE >::sInstance(0); /* NOLINT */ \
86 template class ::android::Singleton< TYPE >; 86 template class ::android::Singleton< TYPE >;
87 87
88 88