fd7dc03fdd1e0cd558df43a155ab1644cbe2b553 |
|
03-Feb-2016 |
Christopher Wiley <wiley@google.com> |
Declare interface constants as enum in C++ While constexpr hints to the compiler that it can optimize away the address of these integer expressions, it does not mandate this behavior. This can cause linkage errors when the same generated header is included from multiple compilation units and everyone expects the integer constant to defined elsewhere. Bug: 26942276 Test: unittests pass Change-Id: I7dfda08b5226344d5169b3f298413cd8a1ceb692
/system/tools/aidl/tests/test_helpers.h
|