aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Utility/Log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Utility/Log.cpp')
-rw-r--r--lldb/source/Utility/Log.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/lldb/source/Utility/Log.cpp b/lldb/source/Utility/Log.cpp
index 4df82f2bf4d7..ff654ec93e78 100644
--- a/lldb/source/Utility/Log.cpp
+++ b/lldb/source/Utility/Log.cpp
@@ -25,7 +25,7 @@
#include <mutex>
#include <utility>
-#include <assert.h>
+#include <cassert>
#if defined(_WIN32)
#include <process.h>
#else
@@ -60,17 +60,18 @@ uint32_t Log::GetFlags(llvm::raw_ostream &stream, const ChannelMap::value_type &
bool list_categories = false;
uint32_t flags = 0;
for (const char *category : categories) {
- if (llvm::StringRef("all").equals_lower(category)) {
+ if (llvm::StringRef("all").equals_insensitive(category)) {
flags |= UINT32_MAX;
continue;
}
- if (llvm::StringRef("default").equals_lower(category)) {
+ if (llvm::StringRef("default").equals_insensitive(category)) {
flags |= entry.second.m_channel.default_flags;
continue;
}
- auto cat = llvm::find_if(
- entry.second.m_channel.categories,
- [&](const Log::Category &c) { return c.name.equals_lower(category); });
+ auto cat = llvm::find_if(entry.second.m_channel.categories,
+ [&](const Log::Category &c) {
+ return c.name.equals_insensitive(category);
+ });
if (cat != entry.second.m_channel.categories.end()) {
flags |= cat->flag;
continue;