llvm-project/clang/test/Index/index-builtin-opencl.clcpp
Ben Barham 699ae92f04 [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
2022-11-28 11:51:08 -08:00

8 lines
268 B
Plaintext

void testImage(read_only image1d_t);
// CHECK: USR: c:@F@testImage#@BT@ro_image1d#
void testExt(intel_sub_group_avc_mce_payload_t) {}
// CHECK: USR: c:@F@testExt#@BT@intel_sub_group_avc_mce_payload_t#
// RUN: c-index-test -index-file %s --target=spir | FileCheck %s