summaryrefslogtreecommitdiff
path: root/source/Utility/TildeExpressionResolver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Utility/TildeExpressionResolver.cpp')
-rw-r--r--source/Utility/TildeExpressionResolver.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/Utility/TildeExpressionResolver.cpp b/source/Utility/TildeExpressionResolver.cpp
index ae947059d8b9..4e2be77c49cb 100644
--- a/source/Utility/TildeExpressionResolver.cpp
+++ b/source/Utility/TildeExpressionResolver.cpp
@@ -9,14 +9,14 @@
#include "lldb/Utility/TildeExpressionResolver.h"
-#include <assert.h> // for assert
-#include <system_error> // for error_code
+#include <assert.h>
+#include <system_error>
-#include "llvm/ADT/STLExtras.h" // for any_of
-#include "llvm/ADT/SmallVector.h" // for SmallVectorImpl
+#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
-#include "llvm/Support/raw_ostream.h" // for fs
+#include "llvm/Support/raw_ostream.h"
#if !defined(_WIN32)
#include <pwd.h>
@@ -59,7 +59,7 @@ bool StandardTildeExpressionResolver::ResolvePartial(StringRef Expr,
struct passwd *user_entry;
Expr = Expr.drop_front();
- while ((user_entry = getpwent()) != NULL) {
+ while ((user_entry = getpwent()) != nullptr) {
StringRef ThisName(user_entry->pw_name);
if (!ThisName.startswith(Expr))
continue;