From 430179435893efe662b14407267e457804432647 Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Wed, 4 Feb 2015 18:34:23 +0000 Subject: [PATCH] Replace isalnum with isAlphanumeric per review Thanks Dmitri! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228163 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 3ab5039d54..24363ba997 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -10,6 +10,7 @@ #include "Tools.h" #include "InputInfo.h" #include "ToolChains.h" +#include "clang/Basic/CharInfo.h" #include "clang/Basic/LangOptions.h" #include "clang/Basic/ObjCRuntime.h" #include "clang/Basic/Version.h" @@ -2470,7 +2471,7 @@ static void appendUserToPath(SmallVectorImpl &Result) { // Validate that LoginName can be used in a path, and get its length. size_t Len = 0; for (const char *P = Username; *P; ++P, ++Len) { - if (!isalnum(*P) && *P != '_') { + if (!isAlphanumeric(*P) && *P != '_') { Username = nullptr; break; } -- 2.40.0