[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
show more ...
Skip tests when compiler with older versions of clang
[lldb] [test] Skip ObjC-based tests via 'objc' categoryReplace the plethora of ObjC-implied 'skipUnlessDarwin' decoratorswith marking tests as 'objc' category (whenever missing), and skip allObjC
[lldb] [test] Skip ObjC-based tests via 'objc' categoryReplace the plethora of ObjC-implied 'skipUnlessDarwin' decoratorswith marking tests as 'objc' category (whenever missing), and skip allObjC tests on non-Darwin platforms. I have used '.categories' filewherever it was present already or all (>1) tests were relying on ObjC,and explicit add_test_categories() where there was only one test.Differential Revision: https://reviews.llvm.org/D91056
[lldb] Print full Clang diagnostics when the ClangModulesDeclVendor fails to compile a moduleSummary:When the ClangModulesDeclVendor currently fails it just prints very basic and often incomplete
[lldb] Print full Clang diagnostics when the ClangModulesDeclVendor fails to compile a moduleSummary:When the ClangModulesDeclVendor currently fails it just prints very basic and often incomplete diagnostics without any source locations:```(lldb) p @import Foundationerror: while importing modules:'foo/bar.h' file not foundcould not build module 'Darwin'[...]```or even just```(lldb) p @import Foundationerror: while importing modules:could not build module 'Darwin'[...]```These diagnostics help neither the user nor us with figuring out what is the reason for the failure.This patch wires up a full TextDiagnosticPrinter in the ClangModulesDeclVendor and makessure we always return the error stream to the user when we fail to compile our modules.Fixes rdar://63216849Reviewers: aprantl, jdoerfertReviewed By: aprantlSubscribers: JDevlieghereDifferential Revision: https://reviews.llvm.org/D79947