[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
1 file changed
tree: 7fc1c9e4bad65352729d46ee807bb34a1d1c64a5
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. flower
  6. jiri.lock
  7. MILESTONE
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

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.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.