[roll] Roll fuchsia [ide_query] Implement build target resolution using compile_commands.json

This change adds an analyzer module to `ide_query` that reads `compile_commands.json` from the build directory. It extracts the output file from each compilation command and uses the `build/api/client ninja_path_to_gn_label` tool to find the corresponding GN build target.

The analyzer includes:
- Parsing of `compile_commands.json` and handling of both `command` and `arguments` fields.
- Extraction of the `-o` output file, resolving relative paths.
- A heuristic to find targets for header files by looking at other C-family files in the same directory.
- Caching of `ninja_path_to_gn_label` results to reduce overhead.
- Filtering to only process C-family source files.

The resolved GN targets are added to the `BuildTargets` field of each `FileEntry` in the output.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1574373
Original-Revision: a2a667e7f60282ebc0f68f5f8254083e3b2192fd
GitOrigin-RevId: a2791f9bdef26bd276ddf7329d8f2a39e59229fa
Change-Id: If9a8c974cf34e131eb89c4105f9b61196fd5b068
1 file changed
tree: 177bfc25184a44ce81144c92aabca7b1cc94968f
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. 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.