Loading tools/aconfig/aconfig/src/codegen/cpp.rs +5 −5 Original line number Diff line number Diff line Loading @@ -234,11 +234,11 @@ inline bool disabled_rw_in_other_namespace() { return provider_->disabled_rw_in_other_namespace(); } inline bool enabled_fixed_ro() { constexpr inline bool enabled_fixed_ro() { return COM_ANDROID_ACONFIG_TEST_ENABLED_FIXED_RO; } inline bool enabled_fixed_ro_exported() { constexpr inline bool enabled_fixed_ro_exported() { return COM_ANDROID_ACONFIG_TEST_ENABLED_FIXED_RO_EXPORTED; } Loading Loading @@ -496,7 +496,7 @@ inline bool disabled_rw_in_other_namespace() { return false; } inline bool enabled_fixed_ro() { constexpr inline bool enabled_fixed_ro() { return COM_ANDROID_ACONFIG_TEST_ENABLED_FIXED_RO; } Loading Loading @@ -1189,7 +1189,7 @@ public: extern std::unique_ptr<flag_provider_interface> provider_; inline bool disabled_fixed_ro() { constexpr inline bool disabled_fixed_ro() { return COM_ANDROID_ACONFIG_TEST_DISABLED_FIXED_RO; } Loading @@ -1197,7 +1197,7 @@ inline bool disabled_ro() { return false; } inline bool enabled_fixed_ro() { constexpr inline bool enabled_fixed_ro() { return COM_ANDROID_ACONFIG_TEST_ENABLED_FIXED_RO; } Loading tools/aconfig/aconfig/templates/cpp_exported_header.template +1 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ public: extern std::unique_ptr<flag_provider_interface> provider_; {{ for item in class_elements}} {{ if not is_test_mode }}{{ if item.is_fixed_read_only }}constexpr {{ endif }}{{ endif -}} inline bool {item.flag_name}() \{ {{ -if is_test_mode }} return provider_->{item.flag_name}(); Loading Loading
tools/aconfig/aconfig/src/codegen/cpp.rs +5 −5 Original line number Diff line number Diff line Loading @@ -234,11 +234,11 @@ inline bool disabled_rw_in_other_namespace() { return provider_->disabled_rw_in_other_namespace(); } inline bool enabled_fixed_ro() { constexpr inline bool enabled_fixed_ro() { return COM_ANDROID_ACONFIG_TEST_ENABLED_FIXED_RO; } inline bool enabled_fixed_ro_exported() { constexpr inline bool enabled_fixed_ro_exported() { return COM_ANDROID_ACONFIG_TEST_ENABLED_FIXED_RO_EXPORTED; } Loading Loading @@ -496,7 +496,7 @@ inline bool disabled_rw_in_other_namespace() { return false; } inline bool enabled_fixed_ro() { constexpr inline bool enabled_fixed_ro() { return COM_ANDROID_ACONFIG_TEST_ENABLED_FIXED_RO; } Loading Loading @@ -1189,7 +1189,7 @@ public: extern std::unique_ptr<flag_provider_interface> provider_; inline bool disabled_fixed_ro() { constexpr inline bool disabled_fixed_ro() { return COM_ANDROID_ACONFIG_TEST_DISABLED_FIXED_RO; } Loading @@ -1197,7 +1197,7 @@ inline bool disabled_ro() { return false; } inline bool enabled_fixed_ro() { constexpr inline bool enabled_fixed_ro() { return COM_ANDROID_ACONFIG_TEST_ENABLED_FIXED_RO; } Loading
tools/aconfig/aconfig/templates/cpp_exported_header.template +1 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ public: extern std::unique_ptr<flag_provider_interface> provider_; {{ for item in class_elements}} {{ if not is_test_mode }}{{ if item.is_fixed_read_only }}constexpr {{ endif }}{{ endif -}} inline bool {item.flag_name}() \{ {{ -if is_test_mode }} return provider_->{item.flag_name}(); Loading