commit | 96269cacaf2d86f08ae8665d166c510db2a2879a | [log] [tgz] |
---|---|---|
author | Pascal Perez <pascallouis@google.com> | Tue Jan 21 13:15:14 2020 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Tue Jan 21 13:15:14 2020 +0000 |
tree | 429e7f6f74cf7bd825fed0fb8e3c63618546369d | |
parent | b308e02edc80ac51130813bcd72506b27d4f3b1b [diff] |
[fidl][cpp] Simplifying code to destruct in unions When two types named the same need to be destructed, the expression `var.~Type()` is ambiguous and the compiler errors out. To avoid this problem altogether, we are switching the generation to `var.~decltype(var)`. This in turns reduces the need to track destructor types in the fidlgen cpp IR code, which can be simplified to only track whether explicit destruction is needed (or not). Test: goldens, and other FIDL tests Change-Id: I2289385af60b4aa87f83c73c45a4bbb1fd8f389a
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See fuchsia.dev.