File tree Expand file tree Collapse file tree 3 files changed +2
-37
lines changed
source/Plugins/TypeSystem/Clang Expand file tree Collapse file tree 3 files changed +2
-37
lines changed Original file line number Diff line number Diff line change @@ -2165,7 +2165,6 @@ PrintingPolicy TypeSystemClang::GetTypePrintingPolicy() {
2165
2165
// (and we then would have suppressed them from the type name) and also setups
2166
2166
// where LLDB wasn't able to reconstruct the default arguments.
2167
2167
printing_policy.SuppressDefaultTemplateArgs = false ;
2168
- printing_policy.AlwaysIncludeTypeForTemplateArgument = true ;
2169
2168
return printing_policy;
2170
2169
}
2171
2170
@@ -9266,13 +9265,8 @@ ConstString TypeSystemClang::DeclContextGetName(void *opaque_decl_ctx) {
9266
9265
if (opaque_decl_ctx) {
9267
9266
clang::NamedDecl *named_decl =
9268
9267
llvm::dyn_cast<clang::NamedDecl>((clang::DeclContext *)opaque_decl_ctx);
9269
- if (named_decl) {
9270
- std::string name;
9271
- llvm::raw_string_ostream stream{name};
9272
- named_decl->getNameForDiagnostic (stream, GetTypePrintingPolicy (),
9273
- /* qualified=*/ false );
9274
- return ConstString (name);
9275
- }
9268
+ if (named_decl)
9269
+ return ConstString (named_decl->getName ());
9276
9270
}
9277
9271
return ConstString ();
9278
9272
}
Original file line number Diff line number Diff line change @@ -150,23 +150,6 @@ def test(self):
150
150
invalid_type = task_type .FindDirectNestedType (None )
151
151
self .assertFalse (invalid_type )
152
152
153
- # Check that FindDirectNestedType works with types from AST
154
- pointer = frame0 .FindVariable ("pointer" )
155
- pointer_type = pointer .GetType ()
156
- self .assertTrue (pointer_type )
157
- self .DebugSBType (pointer_type )
158
- pointer_info_type = pointer_type .template_args [1 ]
159
- self .assertTrue (pointer_info_type )
160
- self .DebugSBType (pointer_info_type )
161
-
162
- pointer_masks1_type = pointer_info_type .FindDirectNestedType ("Masks1" )
163
- self .assertTrue (pointer_masks1_type )
164
- self .DebugSBType (pointer_masks1_type )
165
-
166
- pointer_masks2_type = pointer_info_type .FindDirectNestedType ("Masks2" )
167
- self .assertTrue (pointer_masks2_type )
168
- self .DebugSBType (pointer_masks2_type )
169
-
170
153
# We'll now get the child member 'id' from 'task_head'.
171
154
id = task_head .GetChildMemberWithName ("id" )
172
155
self .DebugSBValue (id )
Original file line number Diff line number Diff line change @@ -34,14 +34,6 @@ class Task {
34
34
{}
35
35
};
36
36
37
- template <unsigned Value> struct PointerInfo {
38
- enum Masks1 { pointer_mask };
39
- enum class Masks2 { pointer_mask };
40
- };
41
-
42
- template <unsigned Value, typename InfoType = PointerInfo<Value>>
43
- struct Pointer {};
44
-
45
37
enum EnumType {};
46
38
enum class ScopedEnumType {};
47
39
enum class EnumUChar : unsigned char {};
@@ -79,9 +71,5 @@ int main (int argc, char const *argv[])
79
71
ScopedEnumType scoped_enum_type;
80
72
EnumUChar scoped_enum_type_uchar;
81
73
82
- Pointer<3 > pointer;
83
- PointerInfo<3 >::Masks1 mask1 = PointerInfo<3 >::Masks1::pointer_mask;
84
- PointerInfo<3 >::Masks2 mask2 = PointerInfo<3 >::Masks2::pointer_mask;
85
-
86
74
return 0 ; // Break at this line
87
75
}
You can’t perform that action at this time.
0 commit comments