diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-06-30 02:28:26 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-06-30 02:28:26 +0000 |
| commit | e305594277de342f49b92fb5e4849b3fc13a8de0 (patch) | |
| tree | 131c85af82155042afe56cf519221a39fe2314f3 /lldb/test/lang | |
| parent | cfe3b14d7787f5d563d28266a7f04c3d18311105 (diff) | |
| download | bcm5719-llvm-e305594277de342f49b92fb5e4849b3fc13a8de0.tar.gz bcm5719-llvm-e305594277de342f49b92fb5e4849b3fc13a8de0.zip | |
Centralize all of the type name code so that we always strip the leading
"struct ", "class ", and "union " from the start of any type names that are
extracted from clang QualType objects. I had to fix test suite cases that
were expecting the struct/union/class prefix to be there.
llvm-svn: 134132
Diffstat (limited to 'lldb/test/lang')
| -rw-r--r-- | lldb/test/lang/c/forward/TestForwardDeclaration.py | 4 | ||||
| -rw-r--r-- | lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py | 2 | ||||
| -rw-r--r-- | lldb/test/lang/objc/foundation/TestObjCMethods.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/lang/c/forward/TestForwardDeclaration.py b/lldb/test/lang/c/forward/TestForwardDeclaration.py index d336e5a5614..2270e56f9f5 100644 --- a/lldb/test/lang/c/forward/TestForwardDeclaration.py +++ b/lldb/test/lang/c/forward/TestForwardDeclaration.py @@ -47,13 +47,13 @@ class ForwardDeclarationTestCase(TestBase): # This should display correctly. # Note that the member fields of a = 1 and b = 2 is by design. self.expect("frame variable -T *bar_ptr", VARIABLES_DISPLAYED_CORRECTLY, - substrs = ['(struct bar) *bar_ptr = ', + substrs = ['(bar) *bar_ptr = ', '(int) a = 1', '(int) b = 2']) # And so should this. self.expect("expression *bar_ptr", VARIABLES_DISPLAYED_CORRECTLY, - substrs = ['(struct bar)', + substrs = ['(bar)', '(int) a = 1', '(int) b = 2']) diff --git a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py index d44f52dd8b0..dd6cf221303 100644 --- a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py +++ b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py @@ -168,7 +168,7 @@ class DynamicValueTestCase(TestBase): # make sure that works as well: self.expect('frame var -d run-target anotherA.m_client_A._M_ptr', 'frame var finds its way into a child member', - patterns = ['\(.* B \*\)']) + patterns = ['\(B \*\)']) # Now make sure we also get it right for a reference as well: diff --git a/lldb/test/lang/objc/foundation/TestObjCMethods.py b/lldb/test/lang/objc/foundation/TestObjCMethods.py index 0bcff3c21d5..6e6f3ac58bc 100644 --- a/lldb/test/lang/objc/foundation/TestObjCMethods.py +++ b/lldb/test/lang/objc/foundation/TestObjCMethods.py @@ -143,7 +143,7 @@ class FoundationTestCase(TestBase): self.expect("frame variable -T -s", VARIABLES_DISPLAYED_CORRECTLY, substrs = ["ARG: (MyString *) self"], patterns = ["ARG: \(.*\) _cmd", - "(struct objc_selector *)|(SEL)"]) + "(objc_selector *)|(SEL)"]) # rdar://problem/8651752 # don't crash trying to ask clang how many children an empty record has |

