]> granicus.if.org Git - clang/commitdiff
Remove Parser::isTokenUnqualifiedId, it's not getting used anywhere.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 14 Nov 2008 21:41:24 +0000 (21:41 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 14 Nov 2008 21:41:24 +0000 (21:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59323 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/Parser.h

index 9eefe55cb962fabf3c02090eab57a3233afc2d86..40ba2b3563f31aebbfbda739ac3fdde854989a8c 100644 (file)
@@ -127,23 +127,6 @@ private:
             Tok.is(tok::annot_cxxscope) ||
             (Tok.is(tok::identifier) && NextToken().is(tok::coloncolon)));
   }
-  
-  /// isTokenUnqualifiedId - True if token is the start of C++ unqualified-id
-  /// or an identifier in C.
-  ///
-  ///       unqualified-id:
-  ///         identifier
-  /// [C++]   operator-function-id
-  /// [C++]   conversion-function-id
-  /// [C++]   '~' class-name
-  /// [C++]   template-id      [TODO]
-  ///
-  bool isTokenUnqualifiedId() const {
-    return Tok.is(tok::identifier)  ||   // identifier or template-id 
-           Tok.is(tok::kw_operator) ||   // operator/conversion-function-id or
-                                         // template-id
-           (Tok.is(tok::tilde) && getLang().CPlusPlus); // '~' class-name
-  }
 
   /// ConsumeToken - Consume the current 'peek token' and lex the next one.
   /// This does not work with all kinds of tokens: strings and specific other