diff options
author | Jonah Graham | 2018-11-20 21:20:39 +0000 |
---|---|---|
committer | Jonah Graham | 2018-11-20 21:20:39 +0000 |
commit | 48d2271a58a68743e428d3096d2bca054d04e310 (patch) | |
tree | 235ba23e71c393ad22d1d57fc8fdfec14754c4ee /core/org.eclipse.cdt.core.tests/resources/cmodel/ITemplate.cpp | |
parent | 3cf0297769e5cfb91823e93ce570120a75fe01ce (diff) | |
download | org.eclipse.cdt-48d2271a58a68743e428d3096d2bca054d04e310.tar.gz org.eclipse.cdt-48d2271a58a68743e428d3096d2bca054d04e310.tar.xz org.eclipse.cdt-48d2271a58a68743e428d3096d2bca054d04e310.zip |
Bug 540373: Normalize newlines with .gitattributes
There is also a new script to verify completeness of .gitattributes:
releng/scripts/verify_gitattributes.sh
Change-Id: I2ce270852ab54b66b6c474a6ec94203fe5bba78b
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/resources/cmodel/ITemplate.cpp')
-rw-r--r-- | core/org.eclipse.cdt.core.tests/resources/cmodel/ITemplate.cpp | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/core/org.eclipse.cdt.core.tests/resources/cmodel/ITemplate.cpp b/core/org.eclipse.cdt.core.tests/resources/cmodel/ITemplate.cpp index 9874a1f3fd4..a180890fd5a 100644 --- a/core/org.eclipse.cdt.core.tests/resources/cmodel/ITemplate.cpp +++ b/core/org.eclipse.cdt.core.tests/resources/cmodel/ITemplate.cpp @@ -1,72 +1,72 @@ -class Key;
-class Value;
-class SortAlgorithm;
-class DefaultSort;
-class T;
-class X;
-class Y;
-class Bar;
-class Foo {
- template<class Bar> void fum(int i);
-};
-
-// TEMPLATE_STRUCT
-template<class Key, class Value, class SortAlgorithm=DefaultSort>
-struct Map
-{
- Key* keys;
- Value* values;
- SortAlgorithm* sortAlgorithm;
- Map();
-};
-
-// TEMPLATE_CLASS
-template<class T> class nonVector {
- private:
- T* head;
-
- public:
- nonVector() { head =new T(); }
- int length() { return 1; }
- const T& first();
-};
-
-// TEMPLATE_UNION
-template<class X, class Y, int size=16>
-union ArrayOverlay {
- public:
- X x[size];
- Y y[size];
-
- static int<X,Y> numArrays;
-};
-
-
-// TEMPLATE_METHODS
-class TemplateContainer {
- // these are in an enclosing class
- template<class Bar> void fum(int i);
- template<int> void scrum(void) {};
-};
-
-// TEMPLATE_FUNCTION
-template<class T> const T& nonVector<T>::first() const
-{
- return *head;
-}
-
-template<class X> bool IsGreaterThan(X,X);
-
-template<class Bar> void Foo::fum(int i) {}
-
-// TEMPLATE_VARIABLES
-template <bool threads, int inst> char* default_alloc_template<threads, inst>::S_start_free = 0;
-
-// an instantiation, not a template:
-complex<float> cf(0,0);
-//template<class Language, class CharacterSet, class SortAlgorithm<CharacterSet> >
-//Dictionary* TheSpellCheckDictionary;
-
-int success;
-
-
+class Key; +class Value; +class SortAlgorithm; +class DefaultSort; +class T; +class X; +class Y; +class Bar; +class Foo { + template<class Bar> void fum(int i); +}; + +// TEMPLATE_STRUCT +template<class Key, class Value, class SortAlgorithm=DefaultSort> +struct Map +{ + Key* keys; + Value* values; + SortAlgorithm* sortAlgorithm; + Map(); +}; + +// TEMPLATE_CLASS +template<class T> class nonVector { + private: + T* head; + + public: + nonVector() { head =new T(); } + int length() { return 1; } + const T& first(); +}; + +// TEMPLATE_UNION +template<class X, class Y, int size=16> +union ArrayOverlay { + public: + X x[size]; + Y y[size]; + + static int<X,Y> numArrays; +}; + + +// TEMPLATE_METHODS +class TemplateContainer { + // these are in an enclosing class + template<class Bar> void fum(int i); + template<int> void scrum(void) {}; +}; + +// TEMPLATE_FUNCTION +template<class T> const T& nonVector<T>::first() const +{ + return *head; +} + +template<class X> bool IsGreaterThan(X,X); + +template<class Bar> void Foo::fum(int i) {} + +// TEMPLATE_VARIABLES +template <bool threads, int inst> char* default_alloc_template<threads, inst>::S_start_free = 0; + +// an instantiation, not a template: +complex<float> cf(0,0); +//template<class Language, class CharacterSet, class SortAlgorithm<CharacterSet> > +//Dictionary* TheSpellCheckDictionary; + +int success; + + |