]> granicus.if.org Git - clang/commitdiff
Replace isalnum with isAlphanumeric per review
authorBen Langmuir <blangmuir@apple.com>
Wed, 4 Feb 2015 18:34:23 +0000 (18:34 +0000)
committerBen Langmuir <blangmuir@apple.com>
Wed, 4 Feb 2015 18:34:23 +0000 (18:34 +0000)
Thanks Dmitri!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228163 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 3ab5039d5445eadc11076053b968eaf10c3deab7..24363ba9977f7cba09968ffa70401650cfad8812 100644 (file)
@@ -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<char> &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;
       }