@@ -346,7 +346,8 @@ void TypeInDeclRule::registerMatcher(MatchFinder &MF) {
346346 " cublasLtMatmulHeuristicResult_t" , " CUjit_target" ,
347347 " cublasLtMatrixTransformDesc_t" , " cudaGraphicsMapFlags" ,
348348 " cudaGraphicsRegisterFlags" , " cudaExternalMemoryHandleType" ,
349- " CUstreamCallback" , " cudaHostFn_t" ))))))
349+ " CUstreamCallback" , " cudaHostFn_t" , " __nv_half2" ,
350+ " __nv_half" ))))))
350351 .bind (" cudaTypeDef" ),
351352 this );
352353
@@ -1189,10 +1190,6 @@ void VectorTypeNamespaceRule::registerMatcher(MatchFinder &MF) {
11891190 .bind (" vectorTypeTL" ),
11901191 this );
11911192
1192- MF.addMatcher (
1193- cxxRecordDecl (isDirectlyDerivedFrom (hasAnyName (SUPPORTEDVECTORTYPENAMES)))
1194- .bind (" inheritanceType" ),
1195- this );
11961193
11971194 auto Vec3Types = [&]() {
11981195 return hasAnyName (" char3" , " uchar3" , " short3" , " ushort3" , " int3" , " uint3" ,
@@ -5034,8 +5031,9 @@ void DeviceFunctionDeclRule::registerMatcher(ast_matchers::MatchFinder &MF) {
50345031 this );
50355032
50365033 MF.addMatcher (typeLoc (hasAncestor (DeviceFunctionMatcher),
5037- loc (qualType (hasDeclaration (namedDecl (hasAnyName (
5038- " __half" , " half" , " __half2" , " half2" ))))))
5034+ loc (qualType (hasDeclaration (namedDecl (
5035+ hasAnyName (" __half" , " half" , " __half2" , " half2" ,
5036+ " __nv_half2" , " __nv_half" ))))))
50395037 .bind (" fp16" ),
50405038 this );
50415039
0 commit comments