[Index] Add various missing USR generation
authorBen Barham <ben_barham@apple.com>
Fri, 18 Nov 2022 20:32:39 +0000 (12:32 -0800)
committerBen Barham <ben_barham@apple.com>
Mon, 28 Nov 2022 19:51:08 +0000 (11:51 -0800)
commit699ae92f045331b555394b8b9757d7e0fbf97100
tree085da526be8277e555e89664d6693ce6a83b2fbd
parent52dd5b6e953686679c7a4a24e8d454bc1e76fafa
[Index] Add various missing USR generation

Over the years there's been many builtin types added without
corresponding USRs. Add a `@BT@<name>` USR for all these types. Also add
a comment so that hopefully this doesn't continue happening.

`MSGuid` was also missing a USR, use `@MG@GUID{<uuid>}` for it.

Resolves rdar://102198268.

Differential Revision: https://reviews.llvm.org/D138322
clang/lib/Index/USRGeneration.cpp
clang/test/Index/index-builtin-fixedpoint.c [new file with mode: 0644]
clang/test/Index/index-builtin-opencl.clcpp [new file with mode: 0644]
clang/test/Index/index-builtin-ppc.cpp [new file with mode: 0644]
clang/test/Index/index-builtin-riscv.c [new file with mode: 0644]
clang/test/Index/index-builtin-sve.cpp [new file with mode: 0644]
clang/test/Index/index-msguid.cpp [new file with mode: 0644]