[lldb] Automatically unwrap parameter packs in template argument accessorsWhen looking at template arguments in LLDB, we usually care about whatthe user passed in his code, not whether some of th
[lldb] Automatically unwrap parameter packs in template argument accessorsWhen looking at template arguments in LLDB, we usually care about whatthe user passed in his code, not whether some of those arguments wherepassed as a variadic parameter pack.This patch extends all the C++ APIs to look at template parameters totake an additional 'expand_pack' boolean that automatically unwraps thepotential argument packs. The equivalent SBAPI calls have been changedto pass true for this parameter.A byproduct of the patch is to also fix the support for template typethat have only a parameter pack as argument (like the OnlyPack type inthe test). Those were not recognized as template instanciations before.The added test verifies that the SBAPI is able to iterate over thearguments of a variadic template.The original patch was written by Fred Riss almost 4 years ago.Differential revision: https://reviews.llvm.org/D51387(cherry picked from commit b706f56133a77f9d7c55270ac24ff59e6fce3fa4)
show more ...
[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://r
[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://reviews.llvm.org/D128077
[lldb] Remove GCC XFAIL for TestCPPAuto and TestClassTemplateParameterPackBoth tests are passing for GCC>8 on Linux so let's mark them as passing.TestCPPAuto was originally disabled due to "an pr
[lldb] Remove GCC XFAIL for TestCPPAuto and TestClassTemplateParameterPackBoth tests are passing for GCC>8 on Linux so let's mark them as passing.TestCPPAuto was originally disabled due to "an problem with debug info generation"in ea35dbeff29f3095df3ad1d77cce3d9e5b197e7c .TestClassTemplateParameterPack was disabled without explanation in0f01fb39e3fe3d8e99df1dd185e75ad584b777b3 .
[lldb][NFC] Modernize and cleanup TestClassTemplateParameterPack* Un-inline the test.* Use expect_expr everywhere and also check all involved types.* Clang-format the test sources.* Explain what
[lldb][NFC] Modernize and cleanup TestClassTemplateParameterPack* Un-inline the test.* Use expect_expr everywhere and also check all involved types.* Clang-format the test sources.* Explain what we're actually testing with the 'C' and 'D' templates.* Split out the non-template-parameter-pack part of the test into its own small test.
[lldb] Remove license headers from all test source filesSummary:Around a third of our test sources have LLVM license headers. This patch removes those headers from all testsources and also fixes
[lldb] Remove license headers from all test source filesSummary:Around a third of our test sources have LLVM license headers. This patch removes those headers from all testsources and also fixes any tests that depended on the length of the license header.The reasons for this are:* A few tests verify line numbers and will start failing if the number of lines in the LLVM license header changes. Once I landed my patch for valid SourceLocations in debug info we will probably have even more tests that verify line numbers.* No other LLVM project is putting license headers in its test files to my knowledge.* They make the test sources much more verbose than they have to be. Several tests have longer license headers than the actual test source.For the record, the following tests had their line numbers changed to pass with the removal of the license header: lldb-api :: functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py lldb-shell :: Reproducer/TestGDBRemoteRepro.test lldb-shell :: Reproducer/TestMultipleTargets.test lldb-shell :: Reproducer/TestReuseDirectory.test lldb-shell :: ExecControl/StopHook/stop-hook-threads.test lldb-shell :: ExecControl/StopHook/stop-hook.test lldb-api :: lang/objc/exceptions/TestObjCExceptions.pyReviewers: #lldb, espindola, JDevlieghereReviewed By: #lldb, JDevlieghereSubscribers: emaste, aprantl, arphaman, JDevlieghere, lldb-commitsTags: #lldbDifferential Revision: https://reviews.llvm.org/D74839
[lldb/TypeSystemClang] Supply trivial TypeSourceInfo to NonTypeTemplateParmDecl::CreateThis fixes a UBSan error seen while debugging clang:Member call on null pointer of type 'clang::TypeSourceIn
[lldb/TypeSystemClang] Supply trivial TypeSourceInfo to NonTypeTemplateParmDecl::CreateThis fixes a UBSan error seen while debugging clang:Member call on null pointer of type 'clang::TypeSourceInfo'rdar://58783517Differential Revision: https://reviews.llvm.org/D73808
[lldb][test] Remove symlink for API tests.Summary: Moves lldbsuite tests to lldb/test/API.This is a largely mechanical change, moved with the following steps:```rm lldb/test/API/testcasesmkdi
[lldb][test] Remove symlink for API tests.Summary: Moves lldbsuite tests to lldb/test/API.This is a largely mechanical change, moved with the following steps:```rm lldb/test/API/testcasesmkdir -p lldb/test/API/{test_runner/test,tools/lldb-{server,vscode}}mv lldb/packages/Python/lldbsuite/test/test_runner/test lldb/test/API/test_runnerfor d in $(find lldb/packages/Python/lldbsuite/test/* -maxdepth 0 -type d | egrep -v "make|plugins|test_runner|tools"); do mv $d lldb/test/API; donefor d in $(find lldb/packages/Python/lldbsuite/test/tools/lldb-vscode -maxdepth 1 -mindepth 1 | grep -v ".py"); do mv $d lldb/test/API/tools/lldb-vscode; donefor d in $(find lldb/packages/Python/lldbsuite/test/tools/lldb-server -maxdepth 1 -mindepth 1 | egrep -v "gdbremote_testcase.py|lldbgdbserverutils.py|socket_packet_pump.py"); do mv $d lldb/test/API/tools/lldb-server; done```lldb/packages/Python/lldbsuite/__init__.py and lldb/test/API/lit.cfg.py were also updated with the new directory structure.Reviewers: labath, JDevlieghereTags: #lldbDifferential Revision: https://reviews.llvm.org/D71151