platform_system_core/base
Yabin Cui 2527628eda base: Avoid compilation error when compiled with -Wdangling-else.
As logging macros uses `if xxx else yyy` style, it is reported as an
error when DCHECK() is compiled with -Wdangling-else option. Because
after preprocess, DCHECK(x) becomes:
if (EnableDChecks)
  if (x)
    ;
  else
    LogMessage(FATAL) << yyy;

This CL avoids compilation error by replacing `if xxx else yyy`
with `xxx && yyy` or `!(xxx) || yyy`.

Bug: 26962895

Change-Id: Ib0bf242cc04a238ec31a1ab66b53fc8a5b5ed28f
2016-03-21 17:46:21 -07:00
..
include/android-base base: Avoid compilation error when compiled with -Wdangling-else. 2016-03-21 17:46:21 -07:00
.clang-format Revert "Revert "Create libbase."" 2015-03-16 10:08:46 -07:00
Android.mk Fix libbase's logging dependency. 2016-02-04 08:24:55 -08:00
CPPLINT.cfg Don't show lint errors for rvalue references. 2015-04-02 18:38:01 -07:00
errors_test.cpp base: add SystemErrorCodeToString() function. 2016-02-01 12:18:26 -08:00
errors_unix.cpp base: add SystemErrorCodeToString() function. 2016-02-01 12:18:26 -08:00
errors_windows.cpp base: add SystemErrorCodeToString() function. 2016-02-01 12:18:26 -08:00
file.cpp libziparchive: port unit tests to darwin and windows. 2016-02-08 16:52:55 -08:00
file_test.cpp base: add API to remove file if it exists. 2016-01-29 19:24:55 -08:00
logging.cpp Fix windows 64-bit builds 2016-02-05 16:10:10 -08:00
logging_test.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
parseint_test.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
parsenetaddress.cpp base: add network address parsing function from adb. 2016-01-21 20:03:33 -08:00
parsenetaddress_test.cpp base: add network address parsing function from adb. 2016-01-21 20:03:33 -08:00
stringprintf.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
stringprintf_test.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
strings.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
strings_test.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
test_main.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
test_utils.cpp Remove libbase's libutils dependency. 2016-02-17 11:53:54 -08:00
utf8.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
utf8_test.cpp Fix a couple sign-comparison warnings. 2016-01-15 12:18:14 -08:00