llvm-project/lldb/source/Host
Neal (nealsid) fd89af6880 Wrap edit line configuration calls into helper functions
Currently we call el_set directly to configure the editor in the libedit
wrapper.  There are some cases in which this causes extra casting, but we pass
captureless lambdas as function pointers, which should work out of the box.
Since el_set takes varargs, if the cast is incorrect or if the cast is not
present, it causes a run time failure rather than compile error.  This change
makes it so a few different types of configuration is done inside a helper
function to provide type safety and eliminate that casting.  I didn't do all
edit line configuration because I'm not sure how important it was in other cases
and it might require something more general keep up with libedit's signature.
I'm open to suggestions, though.

Reviewed By: teemperor, JDevlieghere

Differential Revision: https://reviews.llvm.org/D101250
2021-04-30 12:32:29 +02:00
..
android [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
common Wrap edit line configuration calls into helper functions 2021-04-30 12:32:29 +02:00
freebsd [lldb] [Host/freebsd] Set Arg0 for 'platform process list -v' 2020-11-09 12:09:12 +01:00
linux Reland "[lldb] [Process] Watch for fork/vfork notifications" for Linux 2021-04-13 14:38:31 +02:00
macosx [lldb] Pretend host architecture is arm64 on AS 2021-04-13 18:57:23 -07:00
netbsd [lldb] [Host/{free,net}bsd] Fix process matching by name 2020-11-03 09:45:50 +01:00
openbsd [lldb/Reproducers] Intercept the FindProcesses API 2020-03-13 09:31:35 -07:00
posix [lldb] Remove some nanosleep preprocessor magic 2021-02-16 21:07:57 +01:00
windows [lldb] Fix shared library directory computation on windows 2021-02-18 15:37:52 +01:00
CMakeLists.txt Build a flat LLDB.framework for embedded Darwin targets 2020-08-12 13:34:29 -07:00