Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-02-21 11:02:42 -0500
committerAnton Leherbauer2008-02-21 11:02:42 -0500
commitd236e380c727a9dc401b9447ff4e6ea6b1d147fd (patch)
treed087392b777e547ec187db3bcd02c30511643aeb /core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp
parentd7f3e235cc0445bd1f3f0e8c56ef38c7a3d2aeaf (diff)
downloadorg.eclipse.cdt-d236e380c727a9dc401b9447ff4e6ea6b1d147fd.tar.gz
org.eclipse.cdt-d236e380c727a9dc401b9447ff4e6ea6b1d147fd.tar.xz
org.eclipse.cdt-d236e380c727a9dc401b9447ff4e6ea6b1d147fd.zip
178601: Add whitespace options to preference UI
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp')
-rw-r--r--core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp16
1 files changed, 9 insertions, 7 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;

Back to the top