From: Ben Langmuir Date: Wed, 4 Feb 2015 18:34:23 +0000 (+0000) Subject: Replace isalnum with isAlphanumeric per review X-Git-Tag: llvmorg-3.7.0-rc1~13074 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e056ec32cd6c7c349effa81ebc6fddb03b25354b;p=platform%2Fupstream%2Fllvm.git Replace isalnum with isAlphanumeric per review Thanks Dmitri! llvm-svn: 228163 --- diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 3ab5039..24363ba 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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; }