diff options
| author | Chih-Hung Hsieh <chh@google.com> | 2017-08-01 13:49:57 -0700 |
|---|---|---|
| committer | Chih-hung Hsieh <chh@google.com> | 2017-08-01 22:12:57 +0000 |
| commit | 85244e8bc2702f9a46782c5075b832b7c1d96900 (patch) | |
| tree | effeb66248b4be8136348a877274dc8e3731dbba /libutils/include | |
| parent | eb3fa921916f2505d85fe42b780a890f7358f482 (diff) | |
| download | system_core-85244e8bc2702f9a46782c5075b832b7c1d96900.tar.gz system_core-85244e8bc2702f9a46782c5075b832b7c1d96900.tar.bz2 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.h | 2 |
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: #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 >; |
