diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-01-29 21:30:48 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2020-01-30 09:39:50 -0800 |
commit | 9911e280430ace382bef85b1c8e463c17fbe0522 (patch) | |
tree | cfdec17f95290ee2698761c1ebe2ab9a4b85ed9c /libsparse/sparse.cpp | |
parent | 077839ab239f0aeae95e0b3814da70f6a0eb9699 (diff) |
Allow LOG_ALWAYS_FATAL_IF in constexpr functions
* When __FAKE_USE_VA_ARGS has args that are not constexpr,
reaching it in a constexpr function will be make the
constexpr function invalid.
To allow LOG_ALWAYS_FATAL_IF in a constexpr functions when
the tested condition is false, it should call __FAKE_USE_VA_ARGS
only when the tested condition is true.
* Other ALOG*_IF macros are also changed to call
__FAKE_USE_VA_ARGS only when the tested condition is true.
Bug: 148548418
Test: WITH_TIDY=1 make
Change-Id: Ie8a444dffbf9cbef78e5e0b49b44f4092bcf9982
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions