commit | 7b0f80ebe8c7026b15cf1807ef7d4164b92ae415 | [log] [tgz] |
---|---|---|
author | Ian McKellar <ianloic@fuchsia.infra.roller.google.com> | Mon May 05 14:30:24 2025 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon May 05 14:32:28 2025 -0700 |
tree | 7fc1c9e4bad65352729d46ee807bb34a1d1c64a5 | |
parent | 6647444851838b9bbec9d5d4110d12abe61a4836 [diff] |
[roll] Roll fuchsia [cpp][fidl] codegen cleanup A very very common pattern when generating code for types that may contain handles is to do: {{ if .IsResourceType }} {{ IfdefFuchsia }} {{ end }} // some stuff that can't build on host {{ if .IsResourceType }} {{ EndifFuchsia }} {{ end }} I've added a pair of template functions so that this can be simplified to: {{ IfdefFuchsiaIf .IsResourceType }} // some stuff that can't build on host {{ EndifFuchsiaIf .IsResourceType }} The conditional is *always* .IsResourceType so this could have been {{ IfdefFuchsiaIfIsResourceType . }} // some stuff that can't build on host {{ EndifFuchsiaIfIsResourceType . }} but I feel like that's a little bit too magic. There are a couple of little other clean-ups in there that I came across while working on it. Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1267024 Original-Revision: 9e7116924169910dc8283f7807e3f03578c678a2 GitOrigin-RevId: 326afc27cefee11b8d2a40da880e500919db7538 Change-Id: I63f707072da4453b4d17952859fb216c02c95521
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party
.