[lldb] Rewrite/expand TestCppTypedef and document a lookup bug.
authorRaphael Isemann <teemperor@gmail.com>
Thu, 7 Oct 2021 09:18:22 +0000 (11:18 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Thu, 7 Oct 2021 11:30:03 +0000 (13:30 +0200)
commit322e13b91aac23ab324c3dcbbcfe8e73894f4c28
tree63edb250f662a1f9b8890055b04da69c2afb013e
parent81a2f39307a1f2169203abeb66c7bb00b5496edc
[lldb] Rewrite/expand TestCppTypedef and document a lookup bug.

Just regrouping the checks for the same typedef together and also giving the
different typedefs unique names. We might want to have a second test with
identical names to see how LLDB handle the potential name conflict, but that
should be a separate test and not part of the main typedef test.

Also this test is actually unintentionally passing. LLDB can't lookup typedefs
in a struct/class scope, but in the test the check passes as the local variable
in the expression evaluation scope pulls in the typedef. I added a second check
that makes it clear that this is not working right now.
lldb/test/API/lang/cpp/typedef/TestCppTypedef.py
lldb/test/API/lang/cpp/typedef/main.cpp