]> granicus.if.org Git - clang/commitdiff
Don't rely on ADL to find this member, patch by Justin Handville
authorChris Lattner <sabre@nondot.org>
Sat, 8 Sep 2007 01:29:20 +0000 (01:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 8 Sep 2007 01:29:20 +0000 (01:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41783 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Token.h

index a0754005e87f239405876eadd167c0dab6181d65..93e498fb6e01a8b88dbca2e5a5007ee03214b4c2 100644 (file)
@@ -61,7 +61,7 @@ public:
   void setLocation(SourceLocation L) { Loc = L; }
   void setLength(unsigned Len) { Length = Len; }
   
-  const char *getName() const { return getTokenName(Kind); }
+  const char *getName() const { return tok::getTokenName(Kind); }
   
   /// startToken - Reset all flags to cleared.
   ///