diff options
author | Zachary Turner <zturner@google.com> | 2016-09-19 15:34:51 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-09-19 15:34:51 +0000 |
commit | 47d5614967e9b756d4fb3408c8eae99b980fc7af (patch) | |
tree | 46ed6a03802aafc82b63eedcc490cd5cff669c22 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | 9be72675169ba3644b5e004e4ba9e704e5651585 (diff) | |
download | llvm-47d5614967e9b756d4fb3408c8eae99b980fc7af.zip llvm-47d5614967e9b756d4fb3408c8eae99b980fc7af.tar.gz llvm-47d5614967e9b756d4fb3408c8eae99b980fc7af.tar.bz2 |
[Support] Add StringRef::withNullAsEmpty()
When porting large bodies of code from using const char*
to StringRef, it is helpful to be able to treat nullptr
as an empty string, since that it is often what it is used
to indicate in C-style code.
Differential Revision: https://reviews.llvm.org/D24697
llvm-svn: 281906
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions