Mainly because we have changed the return value of 'getTemplateInstantiationPattern()' from 'CXXRecordDecl' to 'RecordDecl'.
We can simply solve this by casting 'RecordDecl' to 'CXXRecordDecl', it will be fine in C++.
However, the casting result will be null in BSC, cause the instantiation of BSC template-struct is 'RecordDecl', not 'CXXRecordDecl' (But it won`t report error when compiling clang or clangd.).
新值
Error when using the command below to compile clangd.
However, the casting result will be null in BSC, cause the instantiation of BSC template-struct is 'RecordDecl', not 'CXXRecordDecl' (But it won`t report error when compiling clang or clangd.).