aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/MinimalAction.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-18 19:37:40 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-18 19:37:40 +0000
commitd6fb7ef028d9aa0b3e8943b7bc049c524437b407 (patch)
tree3e378ac3ed8c27d88bf386b5e822433829a3908d /lib/Parse/MinimalAction.cpp
parent80d2f3059326f99ebf7c867db1c7f106ec9485f5 (diff)
Ultrasimplistic sketch for the parsing of C++ template-ids. This won't
become useful or correct until we (1) parse template arguments correctly, (2) have some way to turn template-ids into types, declarators, etc., and (3) have a real representation of templates. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/MinimalAction.cpp')
-rw-r--r--lib/Parse/MinimalAction.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Parse/MinimalAction.cpp b/lib/Parse/MinimalAction.cpp
index 583781056e..c4e7ecc0c3 100644
--- a/lib/Parse/MinimalAction.cpp
+++ b/lib/Parse/MinimalAction.cpp
@@ -73,6 +73,16 @@ bool MinimalAction::isCurrentClassName(const IdentifierInfo &, Scope *,
return false;
}
+ /// isTemplateName - Determines whether the identifier II is a
+ /// template name in the current scope, and returns the template
+ /// declaration if II names a template. An optional CXXScope can be
+ /// passed to indicate the C++ scope in which the identifier will be
+ /// found.
+Action::DeclTy *MinimalAction::isTemplateName(IdentifierInfo &II, Scope *S,
+ const CXXScopeSpec *SS ) {
+ return 0;
+}
+
/// ActOnDeclarator - If this is a typedef declarator, we modify the
/// IdentifierInfo::FETokenInfo field to keep track of this fact, until S is
/// popped.