llvm-project
527c8ff1 - [lit] Update internal shell lexer to handle LLDB persistent vars. (#156125)

Commit
4 days ago
[lit] Update internal shell lexer to handle LLDB persistent vars. (#156125) LLDB allows creation of 'persistent' variables, with names that start with '$'. The lit internal shell was escaping the '$', making it '\\$', in some CHECK lines, which causes an LLDB test, TestExprWithSideEffectOnConvenienceVar, to fail when using the lit internal shell. Further explanation of the failing LLDB test: LLDB convenience variables start with '$'. The test passes several quoted commands that use and update convenience variables to lldb as arguments to be run in batch mode. The tool that packages up the complete string and passes it to the lit internal shell lexer for lexing inserts a backslash in front of the '$' before passing the string in for lexing. The lexer was passing this change along, causing the tests to fail. This PR fixes the issue by having the lexer remove the newly added escape on the '$'.
Author
Parents
Loading