@@ -1001,17 +1001,14 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
1001
1001
* Notes:
1002
1002
* Hard coding _BUF_SIZE for clang-cl compatibility; clang-cl as of 7.0.1 does not emit S_CONSTANT to get _BUF_SIZE
1003
1003
*
1004
- * char = na format
1005
- * wchar_t / unsigned short / char16_t = su format
1006
- * char32_t = s32 format
1004
+ * The `na` format specifier means "no address". For more info, see:
1005
+ * https://learn.microsoft.com/en-us/visualstudio/debugger/format-specifiers-in-cpp?view=vs-2022
1007
1006
-->
1008
- <Type Name =" std::basic_string< char,*> " >
1009
- <AlternativeType Name =" std::basic_string< char8_t,*> " />
1010
-
1007
+ <Type Name =" std::basic_string< *> " >
1011
1008
<Intrinsic Name =" size" Expression =" _Mypair._Myval2._Mysize" />
1012
1009
<Intrinsic Name =" capacity" Expression =" _Mypair._Myval2._Myres" />
1013
- <!-- _BUF_SIZE = 16 / sizeof(char ) < 1 ? 1 : 16 / sizeof(char) == 16 -->
1014
- <Intrinsic Name =" bufSize" Expression =" 16" />
1010
+ <!-- _BUF_SIZE = 16 / sizeof($T1 ) < 1 ? 1 : 16 / sizeof($T1) -->
1011
+ <Intrinsic Name =" bufSize" Expression =" 16 / sizeof($T1) < 1 ? 1 : 16 / sizeof($T1) " />
1015
1012
<Intrinsic Name =" isShortString" Expression =" capacity() < bufSize()" />
1016
1013
<Intrinsic Name =" isLongString" Expression =" capacity() > = bufSize()" />
1017
1014
<DisplayString Condition =" isShortString()" >{_Mypair._Myval2._Bx._Buf,na}</DisplayString >
@@ -1030,85 +1027,14 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
1030
1027
</Expand >
1031
1028
</Type >
1032
1029
1033
- <Type Name =" std::basic_string< wchar_t,*> " >
1034
- <AlternativeType Name =" std::basic_string< unsigned short,*> " />
1035
- <AlternativeType Name =" std::basic_string< char16_t,*> " />
1036
-
1037
- <Intrinsic Name =" size" Expression =" _Mypair._Myval2._Mysize" />
1038
- <Intrinsic Name =" capacity" Expression =" _Mypair._Myval2._Myres" />
1039
- <!-- _BUF_SIZE = 16 / sizeof(wchar_t) < 1 ? 1 : 16 / sizeof(wchar_t) == 8 -->
1040
- <Intrinsic Name =" bufSize" Expression =" 8" />
1041
- <Intrinsic Name =" isShortString" Expression =" capacity() < bufSize()" />
1042
- <Intrinsic Name =" isLongString" Expression =" capacity() > = bufSize()" />
1043
- <DisplayString Condition =" isShortString()" >{_Mypair._Myval2._Bx._Buf,su}</DisplayString >
1044
- <DisplayString Condition =" isLongString()" >{_Mypair._Myval2._Bx._Ptr,su}</DisplayString >
1045
- <StringView Condition =" isShortString()" >_Mypair._Myval2._Bx._Buf,su</StringView >
1046
- <StringView Condition =" isLongString()" >_Mypair._Myval2._Bx._Ptr,su</StringView >
1047
- <Expand >
1048
- <Item Name =" [size]" ExcludeView =" simple" >size()</Item >
1049
- <Item Name =" [capacity]" ExcludeView =" simple" >capacity()</Item >
1050
- <Item Name =" [allocator]" ExcludeView =" simple" >_Mypair</Item >
1051
- <ArrayItems >
1052
- <Size >_Mypair._Myval2._Mysize</Size >
1053
- <ValuePointer Condition =" isShortString()" >_Mypair._Myval2._Bx._Buf</ValuePointer >
1054
- <ValuePointer Condition =" isLongString()" >_Mypair._Myval2._Bx._Ptr</ValuePointer >
1055
- </ArrayItems >
1056
- </Expand >
1057
- </Type >
1058
-
1059
- <Type Name =" std::basic_string< char32_t,*> " >
1060
- <Intrinsic Name =" size" Expression =" _Mypair._Myval2._Mysize" />
1061
- <Intrinsic Name =" capacity" Expression =" _Mypair._Myval2._Myres" />
1062
- <!-- _BUF_SIZE = 16 / sizeof(char32_t) < 1 ? 1 : 16 / sizeof(char32_t) == 4 -->
1063
- <Intrinsic Name =" bufSize" Expression =" 4" />
1064
- <Intrinsic Name =" isShortString" Expression =" capacity() < bufSize()" />
1065
- <Intrinsic Name =" isLongString" Expression =" capacity() > = bufSize()" />
1066
- <DisplayString Condition =" isShortString()" >{_Mypair._Myval2._Bx._Buf,s32}</DisplayString >
1067
- <DisplayString Condition =" isLongString()" >{_Mypair._Myval2._Bx._Ptr,s32}</DisplayString >
1068
- <StringView Condition =" isShortString()" >_Mypair._Myval2._Bx._Buf,s32</StringView >
1069
- <StringView Condition =" isLongString()" >_Mypair._Myval2._Bx._Ptr,s32</StringView >
1070
- <Expand >
1071
- <Item Name =" [size]" ExcludeView =" simple" >size()</Item >
1072
- <Item Name =" [capacity]" ExcludeView =" simple" >capacity()</Item >
1073
- <Item Name =" [allocator]" ExcludeView =" simple" >_Mypair</Item >
1074
- <ArrayItems >
1075
- <Size >_Mypair._Myval2._Mysize</Size >
1076
- <ValuePointer Condition =" isShortString()" >_Mypair._Myval2._Bx._Buf</ValuePointer >
1077
- <ValuePointer Condition =" isLongString()" >_Mypair._Myval2._Bx._Ptr</ValuePointer >
1078
- </ArrayItems >
1079
- </Expand >
1080
- </Type >
1081
-
1082
- <Type Name =" std::_String_iterator< std::_String_val< std::_Simple_types< char> > > " >
1083
- <AlternativeType Name =" std::_String_const_iterator< std::_String_val< std::_Simple_types< char> > > " />
1084
- <AlternativeType Name =" std::_String_iterator< std::_String_val< std::_Simple_types< char8_t> > > " />
1085
- <AlternativeType Name =" std::_String_const_iterator< std::_String_val< std::_Simple_types< char8_t> > > " />
1030
+ <Type Name =" std::_String_iterator< *> " >
1031
+ <AlternativeType Name =" std::_String_const_iterator< *> " />
1086
1032
<SmartPointer Usage =" Indexable" >_Ptr,na</SmartPointer >
1087
1033
<Expand >
1088
1034
<Item Name =" [ptr]" >_Ptr</Item >
1089
1035
</Expand >
1090
1036
</Type >
1091
1037
1092
- <Type Name =" std::_String_iterator< std::_String_val< std::_Simple_types< wchar_t> > > " >
1093
- <AlternativeType Name =" std::_String_const_iterator< std::_String_val< std::_Simple_types< wchar_t> > > " />
1094
- <AlternativeType Name =" std::_String_iterator< std::_String_val< std::_Simple_types< unsigned short> > > " />
1095
- <AlternativeType Name =" std::_String_const_iterator< std::_String_val< std::_Simple_types< unsigned short> > > " />
1096
- <AlternativeType Name =" std::_String_iterator< std::_String_val< std::_Simple_types< char16_t> > > " />
1097
- <AlternativeType Name =" std::_String_const_iterator< std::_String_val< std::_Simple_types< char16_t> > > " />
1098
- <SmartPointer Usage =" Indexable" >_Ptr,su</SmartPointer >
1099
- <Expand >
1100
- <Item Name =" [ptr]" >_Ptr</Item >
1101
- </Expand >
1102
- </Type >
1103
-
1104
- <Type Name =" std::_String_iterator< std::_String_val< std::_Simple_types< char32_t> > > " >
1105
- <AlternativeType Name =" std::_String_const_iterator< std::_String_val< std::_Simple_types< char32_t> > > " />
1106
- <SmartPointer Usage =" Indexable" >_Ptr,s32</SmartPointer >
1107
- <Expand >
1108
- <Item Name =" [ptr]" >_Ptr</Item >
1109
- </Expand >
1110
- </Type >
1111
-
1112
1038
<Type Name =" std::basic_string_view< *,*> " >
1113
1039
<Intrinsic Name =" size" Expression =" _Mysize" />
1114
1040
<Intrinsic Name =" data" Expression =" _Mydata" />
0 commit comments