/prebuilts/go/linux-x86/src/text/template/ |
template.go | 5 package template package 11 "text/template/parse" 16 tmpl map[string]*Template // Map from name to defined templates. 26 // Template is the representation of a parsed template. The *parse.Tree 27 // field is exported only for use by html/template and should be treated 29 type Template struct { 37 // New allocates a new, undefined template with the given name. 38 func New(name string) *Template { 39 t := &Template{ [all...] |
/external/clang/test/SemaTemplate/ |
temp_arg_nontype.cpp | 2 template<int N> struct A; // expected-note 5{{template parameter is declared here}} 6 A<int()> *a1; // expected-error{{template argument for non-type template parameter is treated as function type 'int ()'}} 8 A<int> *a2; // expected-error{{template argument for non-type template parameter must be an expression}} 10 A<1 >> 2> *a3; // expected-warning{{use of right-shift operator ('>>') in template argument will require parentheses in C++11}} 16 A<E> *a5; // expected-error{{template argument for non-type template parameter must be an expression}} 17 template<E Value> struct A1; // expected-note{{template parameter is declared here} [all...] |
crash-8204126.cpp | 4 template<int> template<typename T> friend void foo(T) {} // expected-error{{extraneous template parameter list}}
|
dependent-type-identity.cpp | 5 // specifies type equivalence within a template. 7 // FIXME: template template parameters 10 template<typename T> 12 template<typename U> 21 template<typename T> 26 template<typename T, typename U> 47 void f4(typename T::template apply<U>*); // expected-note{{previous}} 48 void f4(typename U::template apply<U>*); 49 void f4(typename type::template apply<T>*) [all...] |
instantiate-elab-type-specifier.cpp | 5 template <class T> struct Base { 10 template <class T> struct Derived : Base<T> { 14 template struct Derived<int>;
|
instantiate-explicitly-after-fatal.cpp | 5 template <typename> 8 extern template class Bar<int>; 9 template class Bar<int>;
|
instantiate-function-1.cpp | 2 template<typename T, typename U> 11 template struct X0<int, float>; 12 template struct X0<int*, int>; 13 template struct X0<int X1::*, int>; // expected-note{{instantiation of}} 15 template<typename T> 26 template struct X2<int>; 27 template struct X2<int&>; // expected-note{{instantiation of}} 29 template<typename T> 38 template struct X3<int>; 40 template <typename T> struct X4 [all...] |
instantiate-var-template.cpp | 4 template <typename T> constexpr T pi = T(3.14); 5 template <typename T> constexpr T tau = 2 * pi<T>; 11 template<typename T> constexpr T var = 12345; 12 template<typename T> constexpr T f() { return var<T>; } 18 template<typename T> constexpr T a = 0; 19 template<typename T> constexpr T b = a<int>; 27 template<int> constexpr int a = 1; 28 template<typename T> constexpr T b = a<sizeof(sizeof(f(T())))>; // expected-error {{invalid application of 'sizeof' to an incomplete type 'void'}} 33 template<typename T> void f() { 39 template<typename> struct A [all...] |
rdar9173693.cpp | 4 template< bool C > struct assert { }; 5 template< bool > struct assert_arg_pred_impl { }; // expected-note 3 {{declared here}} 6 template< typename Pred > assert<false> assert_not_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type ); // expected-error 5 {{}}
|
typo-dependent-name.cpp | 4 template<typename T> 9 template<typename T> 11 template<typename U>
|
unused-variables.cpp | 9 template<typename T> 15 template<typename T, typename U> 21 template void g<X0, X1>(); // expected-note{{in instantiation of}}
|
/external/clang/include/clang/AST/ |
TemplateName.h | 1 //===--- TemplateName.h - C++ Template Name Representation-------*- C++ -*-===// 40 /// template names or an already-substituted template template parameter pack. 53 /// \brief The number of stored templates or template arguments, 91 /// overloaded template name. 112 /// \brief A structure for storing an already-substituted template template 115 /// This kind of template names occurs when the parameter pack has been 116 /// provided with a template template argument pack in a context where it [all...] |
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
sizeofpack.cpp | 6 template<typename T, typename... Ts> 15 template <unsigned N> class array {}; 18 template<typename T, typename... Types> 27 template<typename T, typename... Types> 38 template<typename ... Ts> 40 template<typename T, typename... Types> 53 template<class... Members> 55 template<int Idx> 58 template<int i> 62 template<class... Members [all...] |
/external/clang/test/CXX/temp/temp.decls/temp.alias/ |
p1.cpp | 4 template<typename T> using U = T; 6 // The name of the alias template is a template-name.
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/ |
p1.cpp | 3 template<typename T> struct A { }; 5 template<typename T> T make(); 6 template<typename T> T make2(const T&);
|
/external/clang/test/CXX/temp/temp.names/ |
p4.cpp | 5 template<typename U> 11 template<typename T, typename U> 12 void f(typename T::template apply<U>::type);
|
/external/clang/test/CodeGenCXX/ |
2003-11-02-WeakLinkage.cpp | 2 // The template should compile to linkonce linkage, not weak linkage. 5 template<class T> 8 template<class T>
|
debug-info-fn-template.cpp | 3 template<typename T> 8 template<typename T> 15 template int fx(XF<int>);
|
pr15753.cpp | 3 template <typename T> static int Foo(T t); 4 template <typename T> 8 template<> int Foo<int>(int i) {
|
/external/clang/test/Modules/Inputs/merge-decl-context/ |
a.h | 4 template <typename T> 6 template <typename I> 15 template <typename T1, typename T2>
|
/external/clang/test/Parser/ |
cxx-class-template-specialization.cpp | 4 template<typename T> 8 // expected-error@-1 {{identifier followed by '<' indicates a class template specialization but 'f' refers to a function template}}
|
/external/clang/test/SemaCXX/ |
PR8385.cpp | 4 // currently rather poor (we even accept things like "template struct {}"). 5 // Other, explicit tests, should verify the relevant behavior of template 7 struct{template struct{
|
PR8755.cpp | 3 template <typename T> 8 template <typename T> 14 f<int>(); // expected-note{{in instantiation of function template}}
|
templated-friend-decl.cpp | 3 template <typename T> 5 template <typename U> 11 template <typename U>
|
warn-unused-variables-error.cpp | 4 template<typename T> class X; // expected-note{{template is declared here}} 8 expected-error{{implicit instantiation of undefined template 'PR6948::X<char>'}}
|