Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/resources/formatter/templates')
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp16
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/templates/Before.cpp2
2 files changed, 10 insertions, 8 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp b/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp
index 1fcaa2a11cd..e82c29c4db3 100644
--- a/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp
+++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp
@@ -11,7 +11,8 @@ class Foo {
};
// TEMPLATE_STRUCT
-template<class Key, class Value, class SortAlgorithm=DefaultSort> struct Map {
+template<class Key, class Value, class SortAlgorithm=DefaultSort>
+struct Map {
Key* keys;
Value* values;
SortAlgorithm* sortAlgorithm;
@@ -25,7 +26,7 @@ private:
public:
nonVector() {
- head =new T();
+ head = new T();
}
int length() {
return 1;
@@ -34,7 +35,8 @@ public:
};
// TEMPLATE_UNION
-template<class X, class Y, int size=16> union ArrayOverlay {
+template<class X, class Y, int size=16>
+union ArrayOverlay {
public:
X x[size];
Y y[size];
@@ -46,7 +48,8 @@ public:
class TemplateContainer {
// these are in an enclosing class
template<class Bar> void fum(int i);
- template<int> void scrum(void) {
+ template<int>
+ void scrum(void) {
}
;
};
@@ -62,12 +65,11 @@ template<class Bar> void Foo::fum(int i) {
}
// TEMPLATE_VARIABLES
-template <bool threads, int inst> char
+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);
+complex<float> cf(0, 0);
//template<class Language, class CharacterSet, class SortAlgorithm<CharacterSet> >
//Dictionary* TheSpellCheckDictionary;
diff --git a/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/Before.cpp b/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/Before.cpp
index 6873eca767e..09696f13e9a 100644
--- a/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/Before.cpp
+++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/Before.cpp
@@ -25,7 +25,7 @@ template<class T> class nonVector {
private: T* head;
public:
- nonVector() {head =new T();}
+ nonVector() {head=new T();}
int length() {return 1;}
const T& first() const;
};

Back to the top