llvm-project/lldb/source/Expression
Pavel Labath 957d9a0335 [lldb] remove unsigned Stream::operator<< overloads
Summary:
I recently re-discovered that the unsinged stream operators of the
lldb_private::Stream class have a surprising behavior in that they print
the number in hex. This is all the more confusing because the "signed"
versions of those operators behave normally.

Now that, thanks to Raphael, each Stream class has a llvm::raw_ostream
wrapper, I think we should delete most of our formatting capabilities
and just delegate to that. This patch tests the water by just deleting
the operators with the most surprising behavior.

Most of the code using these operators was printing user_id_t values. It
wasn't fully consistent about prefixing them with "0x", but I've tried
to consistenly print it without that prefix, to make it more obviously
different from pointer values.

Reviewers: teemperor, JDevlieghere, jdoerfert

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D70241
2019-11-26 14:24:28 +01:00
..
CMakeLists.txt [Expression] Move IRDynamicChecks to ClangExpressionParser 2019-07-12 00:58:02 +00:00
DWARFExpression.cpp [lldb] remove unsigned Stream::operator<< overloads 2019-11-26 14:24:28 +01:00
DiagnosticManager.cpp [lldb][NFC] Use unique_ptr in DiagnosticManager to express ownership 2019-10-10 08:30:10 +00:00
Expression.cpp [lldb][NFC] Move LLVM RTTI implementation from enum to static ID variable 2019-11-12 10:04:32 +01:00
ExpressionVariable.cpp Revert "[lldb] Move redundant persistent variable counter to ClangPersistentVariables" 2019-08-27 22:50:40 +00:00
FunctionCaller.cpp [lldb][NFC] Move LLVM RTTI implementation from enum to static ID variable 2019-11-12 10:04:32 +01:00
IRExecutionUnit.cpp [lldb] Add logging to IRExecutionUnit::GetStaticInitializers 2019-11-19 15:52:01 +01:00
IRInterpreter.cpp [Logging] Replace Log::Printf with LLDB_LOG macro (NFC) 2019-07-24 17:56:10 +00:00
IRMemoryMap.cpp [Logging] Replace Log::Printf with LLDB_LOG macro (NFC) 2019-07-24 17:56:10 +00:00
LLVMUserExpression.cpp [lldb][NFC] Move LLVM RTTI implementation from enum to static ID variable 2019-11-12 10:04:32 +01:00
Materializer.cpp [CompilerType] Pass an ExecutionContextScope to GetTypeBitAlign. 2019-08-12 21:49:54 +00:00
REPL.cpp remove a smattering of isolated, unnecessary uses of FILE* 2019-10-09 21:50:52 +00:00
UserExpression.cpp [lldb][NFC] Move LLVM RTTI implementation from enum to static ID variable 2019-11-12 10:04:32 +01:00
UtilityFunction.cpp [lldb][NFC] Move LLVM RTTI implementation from enum to static ID variable 2019-11-12 10:04:32 +01:00