diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-04 19:02:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-04 19:02:06 +0000 |
commit | aaba5e346dffdbad5d1c42765a89e4a7afb0da67 (patch) | |
tree | 0bbf6ad0ff4609acaca0df33e72e02ba03d85235 /lib/Parse/ParseDecl.cpp | |
parent | 0e8aaaf67b0c172e5a55cded30b80a83d3bd477f (diff) |
Basic representation of C++ class templates, from Andrew Sutton.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 114f4cb570..e2601b6cf4 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -1726,7 +1726,7 @@ void Parser::ParseDirectDeclarator(Declarator &D) { // If this identifier is followed by a '<', we may have a template-id. DeclTy *Template; - if (NextToken().is(tok::less) && + if (getLang().CPlusPlus && NextToken().is(tok::less) && (Template = Actions.isTemplateName(*Tok.getIdentifierInfo(), CurScope))) { IdentifierInfo *II = Tok.getIdentifierInfo(); |