clang  9.0.0svn
TemplateKinds.h
Go to the documentation of this file.
1 //===--- TemplateKinds.h - Enum values for C++ Template Kinds ---*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 ///
9 /// \file
10 /// Defines the clang::TemplateNameKind enum.
11 ///
12 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_CLANG_BASIC_TEMPLATEKINDS_H
14 #define LLVM_CLANG_BASIC_TEMPLATEKINDS_H
15 
16 namespace clang {
17 
18 /// Specifies the kind of template name that an identifier refers to.
19 /// Be careful when changing this: this enumeration is used in diagnostics.
21  /// The name does not refer to a template.
23  /// The name refers to a function template or a set of overloaded
24  /// functions that includes at least one function template.
26  /// The name refers to a template whose specialization produces a
27  /// type. The template itself could be a class template, template
28  /// template parameter, or template alias.
30  /// The name refers to a variable template whose specialization produces a
31  /// variable.
33  /// The name refers to a dependent template name:
34  /// \code
35  /// template<typename MetaFun, typename T1, typename T2> struct apply2 {
36  /// typedef typename MetaFun::template apply<T1, T2>::type type;
37  /// };
38  /// \endcode
39  ///
40  /// Here, "apply" is a dependent template name within the typename
41  /// specifier in the typedef. "apply" is a nested template, and
42  /// whether the template name is assumed to refer to a type template or a
43  /// function template depends on the context in which the template
44  /// name occurs.
46 };
47 
48 }
49 #endif
50 
51 
The name refers to a function template or a set of overloaded functions that includes at least one fu...
Definition: TemplateKinds.h:25
The name refers to a dependent template name:
Definition: TemplateKinds.h:45
TemplateNameKind
Specifies the kind of template name that an identifier refers to.
Definition: TemplateKinds.h:20
The name does not refer to a template.
Definition: TemplateKinds.h:22
Dataflow Directional Tag Classes.
The name refers to a template whose specialization produces a type.
Definition: TemplateKinds.h:29
The name refers to a variable template whose specialization produces a variable.
Definition: TemplateKinds.h:32