llvm-project/lldb/source/Utility
Adrian Prantl 035217ff51 Allow signposts to take advantage of deferred string substitution
One nice feature of the os_signpost API is that format string
substitutions happen in the consumer, not the logging
application. LLVM's current Signpost class doesn't take advantage of
this though and instead always uses a static "Begin/End %s" format
string.

This patch uses variadic macros to allow the API to be used as
intended. Unfortunately, the primary use-case I had in mind (the
LLDB_SCOPED_TIMER() macro) does not get much better from this, because
__PRETTY_FUNCTION__ is *not* a macro, but a static string, so
signposts created by LLDB_SCOPED_TIMER() still use a static "%s"
format string. At least LLDB_SCOPED_TIMERF() works as intended.

This reapplies the previously reverted patch with additional include
order fixes for non-modular builds of LLDB.

Differential Revision: https://reviews.llvm.org/D103575
2021-06-14 16:53:41 -07:00
..
ARM64_DWARF_Registers.h
ARM64_ehframe_Registers.h
ARM_DWARF_Registers.h
ARM_ehframe_Registers.h
ArchSpec.cpp NFC put the armv6m entry with the other Cortex-M entries 2021-04-15 02:02:26 -07:00
Args.cpp [lldb][NFC] Minor comment and inlining fixes for Args 2021-02-05 10:17:16 +01:00
Baton.cpp
Broadcaster.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
CMakeLists.txt [trace][intel-pt] Implement trace start and trace stop 2021-03-30 17:31:37 -07:00
CompletionRequest.cpp
Connection.cpp
ConstString.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
DataBufferHeap.cpp
DataBufferLLVM.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
DataEncoder.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
DataExtractor.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
Environment.cpp
Event.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
FileSpec.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
GDBRemote.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
IOObject.cpp
LLDBAssert.cpp [lldb] Include llvm-config.h instead of config.h 2021-03-29 08:58:51 -07:00
Listener.cpp
Log.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
Logging.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
NameMatches.cpp
PPC64LE_DWARF_Registers.h
PPC64_DWARF_Registers.h
ProcessInfo.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
RegisterValue.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
RegularExpression.cpp
Reproducer.cpp [lldb] Remove LLDB_CAPTURE_REPRODUCER override 2021-03-31 21:10:56 -07:00
ReproducerInstrumentation.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
ReproducerProvider.cpp [SystemZ][z/OS][Windows] Add new OF_TextWithCRLF flag and use this flag instead of OF_Text 2021-04-06 07:23:31 -04:00
Scalar.cpp [lldb] Fix compilation after removal of APInt::toString 2021-06-11 16:20:57 +02:00
SelectHelper.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
State.cpp
Status.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
Stream.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
StreamCallback.cpp
StreamString.cpp
StringExtractor.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
StringExtractorGDBRemote.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
StringLexer.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
StringList.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
StructuredData.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
TildeExpressionResolver.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
Timer.cpp Allow signposts to take advantage of deferred string substitution 2021-06-14 16:53:41 -07:00
TraceGDBRemotePackets.cpp [trace][intel-pt] Implement trace start and trace stop 2021-03-30 17:31:37 -07:00
TraceIntelPTGDBRemotePackets.cpp [trace][intel-pt] Implement trace start and trace stop 2021-03-30 17:31:37 -07:00
UUID.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
UnimplementedError.cpp
UriParser.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
UserID.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
UserIDResolver.cpp
UuidCompatibility.h
VASprintf.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
VMRange.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
XcodeSDK.cpp