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() {
21652165 // (and we then would have suppressed them from the type name) and also setups
21662166 // where LLDB wasn't able to reconstruct the default arguments.
21672167 printing_policy.SuppressDefaultTemplateArgs = false ;
2168- printing_policy.AlwaysIncludeTypeForTemplateArgument = true ;
21692168 return printing_policy;
21702169}
21712170
@@ -9266,13 +9265,8 @@ ConstString TypeSystemClang::DeclContextGetName(void *opaque_decl_ctx) {
92669265 if (opaque_decl_ctx) {
92679266 clang::NamedDecl *named_decl =
92689267 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 ());
92769270 }
92779271 return ConstString ();
92789272}
Original file line number Diff line number Diff line change @@ -150,23 +150,6 @@ def test(self):
150150 invalid_type = task_type .FindDirectNestedType (None )
151151 self .assertFalse (invalid_type )
152152
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-
170153 # We'll now get the child member 'id' from 'task_head'.
171154 id = task_head .GetChildMemberWithName ("id" )
172155 self .DebugSBValue (id )
Original file line number Diff line number Diff line change @@ -34,14 +34,6 @@ class Task {
3434 {}
3535};
3636
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-
4537enum EnumType {};
4638enum class ScopedEnumType {};
4739enum class EnumUChar : unsigned char {};
@@ -79,9 +71,5 @@ int main (int argc, char const *argv[])
7971 ScopedEnumType scoped_enum_type;
8072 EnumUChar scoped_enum_type_uchar;
8173
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-
8674 return 0 ; // Break at this line
8775}
You can’t perform that action at this time.
0 commit comments