From 3552a2eddc97e5d4792242356fb819ff69914320 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Fri, 12 Oct 2012 17:07:55 +0100 Subject: [PATCH] Update ddoc*.html for new anchors --- test/compilable/extra-files/ddoc1.html | 36 +++++++------- test/compilable/extra-files/ddoc10.html | 56 +++++++++++----------- test/compilable/extra-files/ddoc11.html | 40 ++++++++-------- test/compilable/extra-files/ddoc12.html | 6 +-- test/compilable/extra-files/ddoc13.html | 14 +++--- test/compilable/extra-files/ddoc14.html | 58 +++++++++++------------ test/compilable/extra-files/ddoc2.html | 6 +-- test/compilable/extra-files/ddoc3.html | 6 +-- test/compilable/extra-files/ddoc5.html | 4 +- test/compilable/extra-files/ddoc6.html | 2 +- test/compilable/extra-files/ddoc6491.html | 2 +- test/compilable/extra-files/ddoc7.html | 38 +++++++-------- test/compilable/extra-files/ddoc8.html | 2 +- test/compilable/extra-files/ddoc9.html | 10 ++-- 14 files changed, 140 insertions(+), 140 deletions(-) diff --git a/test/compilable/extra-files/ddoc1.html b/test/compilable/extra-files/ddoc1.html index 736551e81a18..c6c5aea09ac2 100644 --- a/test/compilable/extra-files/ddoc1.html +++ b/test/compilable/extra-files/ddoc1.html @@ -6,11 +6,11 @@

abc

This module is for ABC

-
alias myint; +
alias myint;


-
myint f; +
myint f;
windy city @@ -27,29 +27,29 @@

abc

1998

-
enum E; +
enum E;
comment1

-
int g; +
int g;
comment2

-
wchar LS; +
wchar LS;
UTF line separator

-
wchar PS; -
wchar _XX; -
wchar YY; +
wchar PS; +
wchar _XX; +
wchar YY;
UTF paragraph separator

-
int foo(char c, int argulid, char u); +
int foo(char c, int argulid, char u);
Function foo takes argument c and adds it to argulid.

@@ -65,45 +65,45 @@

abc


-
int barr(); +
int barr();
doc for barr()

-
class Bar; +
class Bar;
The Class Bar

-
int x; +
int x;
member X

-
int y; +
int y;
member Y

-
protected int z; +
protected int z;
member Z

-
enum Easy; +
enum Easy;
The Enum Easy

-
red
+
red
the Red

-
blue
+
blue
the Blue

-
green
+
green
the Green

diff --git a/test/compilable/extra-files/ddoc10.html b/test/compilable/extra-files/ddoc10.html index a4cf286f9840..6222def3808a 100644 --- a/test/compilable/extra-files/ddoc10.html +++ b/test/compilable/extra-files/ddoc10.html @@ -4,123 +4,123 @@

ddoc10



-
struct Foo(T); -
struct Foo(T,U); +
struct Foo(T); +
struct Foo(T,U);
The foo

-
int func1(T)(T x); +
int func1(T)(T x);
This basic case doesn't work very well. The template signature is documented twice, but the function signature (argument names and return type) is not documented at all. This comment is also repeated twice.

-
int func2(T, U)(T x, U y); -
int func2(T)(T x); +
int func2(T, U)(T x, U y); +
int func2(T)(T x);
This comment is also repeated twice, and the second function signature is not very well documented.

-
int func3(T, U)(T x, U y); -
int func3(T, U = int, V : long)(T x); +
int func3(T, U)(T x, U y); +
int func3(T, U = int, V : long)(T x);
This used to work adequately and documented both func3 templates simultaneously. Now, it documents the first template twice and no longer documents the function argument and return types.

-
void map(char rs); -
void map(int rs); +
void map(char rs); +
void map(int rs);
blah

-
void map2()(char rs); -
void map2()(int rs); +
void map2()(char rs); +
void map2()(int rs);
blah

-
void map3(char rs); +
void map3(char rs);
blah http://www.map3.com map3

-
void map4(string s)(char rs); +
void map4(string s)(char rs);
blah http://www.map.com map

-
template map5(string s)
+
template map5(string s)
blah http://www.map.com map

-
struct bar6; +
struct bar6;
blah

-
struct Foo7(T); +
struct Foo7(T);
template bodies

-
void bar(); +
void bar();
Attempt two: Inside. Attempt one: Doc outside static if.

-
void abc(); +
void abc();
the abc function should be static

-
abstract class Foo8; +
abstract class Foo8;
show abstract

-
void bug4878(string a = ")"); +
void bug4878(string a = ")");
a stray ) mustn't foul the macros

-
struct S; +
struct S;


-
const pure nothrow this(long ticks); +
const pure nothrow this(long ticks);


-
const pure nothrow void foo(long ticks); +
const pure nothrow void foo(long ticks);


-
float f10(float a, float b); +
float f10(float a, float b);
Produces something in (a;b]

-
float h10(float a, float b); +
float h10(float a, float b);
Produces something in [a;b)

-
void bug6090(string f = "$(B b)", char g = ')')(string h = "$(", string i = "$)"); +
void bug6090(string f = "$(B b)", char g = ')')(string h = "$(", string i = "$)");


-
struct T; +
struct T;


-
this(A...)(A args); +
this(A...)(A args);


diff --git a/test/compilable/extra-files/ddoc11.html b/test/compilable/extra-files/ddoc11.html index 7b9cd40be7fa..2da73676c917 100644 --- a/test/compilable/extra-files/ddoc11.html +++ b/test/compilable/extra-files/ddoc11.html @@ -4,79 +4,79 @@

ddoc11



-
FE_INVALID
+
FE_INVALID


-
FE_DENORMAL
+
FE_DENORMAL


-
FE_DIVBYZERO
+
FE_DIVBYZERO


-
FE_OVERFLOW
+
FE_OVERFLOW


-
FE_UNDERFLOW
+
FE_UNDERFLOW


-
FE_INEXACT
+
FE_INEXACT


-
FE_ALL_EXCEPT
+
FE_ALL_EXCEPT
Mask of all the exceptions

-
myint bar; +
myint bar;


-
myint foo(myint x = (int).max); +
myint foo(myint x = (int).max);


-
class Foo; +
class Foo;


-
this(string s); +
this(string s);


-
struct div_t; +
struct div_t;


-
struct ldiv_t; +
struct ldiv_t;


-
struct lldiv_t; +
struct lldiv_t;


-
div_t div(int, int); +
div_t div(int, int);


-
ldiv_t ldiv(int, int); +
ldiv_t ldiv(int, int);


-
lldiv_t lldiv(long, long); +
lldiv_t lldiv(long, long);


-
void* calloc(size_t, size_t); +
void* calloc(size_t, size_t);


-
void* malloc(size_t); +
void* malloc(size_t);
dittx

-
void test1(); +
void test1();
Example:
private:
diff --git a/test/compilable/extra-files/ddoc12.html b/test/compilable/extra-files/ddoc12.html
index a6ad513db4ba..93771d4ec85f 100644
--- a/test/compilable/extra-files/ddoc12.html
+++ b/test/compilable/extra-files/ddoc12.html
@@ -4,17 +4,17 @@
         
         

ddoc12



-
int ruhred; +
int ruhred;
This documents correctly.

-
int rühred; +
int rühred;
This should too

-
int foo(int ü, int ş, int ğ); +
int foo(int ü, int ş, int ğ);
BUG:
The parameters are not listed under Params in the generated output diff --git a/test/compilable/extra-files/ddoc13.html b/test/compilable/extra-files/ddoc13.html index 247c8768b008..a2a42146f806 100644 --- a/test/compilable/extra-files/ddoc13.html +++ b/test/compilable/extra-files/ddoc13.html @@ -4,34 +4,34 @@

ddoc13



-
struct Bug4107(T); +
struct Bug4107(T);
struct doc

-
void foo(U)(U u); +
void foo(U)(U u);
templated function doc

-
struct Bug4107b(T); +
struct Bug4107b(T);
alpha

-
struct B(U); +
struct B(U);
beta

-
struct C(V); +
struct C(V);
gamma

-
struct D(W); +
struct D(W);
delta

-
B!(W) e(X)(C!(V) c, X[] x...); +
B!(W) e(X)(C!(V) c, X[] x...);
epsilon

diff --git a/test/compilable/extra-files/ddoc14.html b/test/compilable/extra-files/ddoc14.html index f7b9d2c8c47c..7a3338898eba 100644 --- a/test/compilable/extra-files/ddoc14.html +++ b/test/compilable/extra-files/ddoc14.html @@ -4,149 +4,149 @@

ddoc14



-
struct Structure; +
struct Structure;
-1

-
P variable; +
P variable;
0

-
V mNone(lazy P p); +
V mNone(lazy P p);
1

-
pure nothrow V mPrefix(lazy P p); +
pure nothrow V mPrefix(lazy P p);
2

-
pure nothrow V mSuffix(lazy P p); +
pure nothrow V mSuffix(lazy P p);
3

-
pure nothrow V mSuffixTemplate(T)(lazy P p, T[] t...); +
pure nothrow V mSuffixTemplate(T)(lazy P p, T[] t...);
5

-
pure nothrow V mScoped(lazy P p); +
pure nothrow V mScoped(lazy P p);
6

-
pure nothrow auto mAutoPrefix(ref P p); +
pure nothrow auto mAutoPrefix(ref P p);
7

-
pure nothrow auto mAutoTemplateSuffix(alias T)(ref T t); +
pure nothrow auto mAutoTemplateSuffix(alias T)(ref T t);
9

-
pure nothrow V mColon(lazy P p); +
pure nothrow V mColon(lazy P p);
10

-
class Class; +
class Class;
-1

-
P variable; +
P variable;
0

-
V mNone(lazy P p); +
V mNone(lazy P p);
1

-
pure nothrow V mPrefix(lazy P p); +
pure nothrow V mPrefix(lazy P p);
2

-
pure nothrow V mSuffix(lazy P p); +
pure nothrow V mSuffix(lazy P p);
3

-
pure nothrow V mSuffixTemplate(T)(lazy P p, T[] t...); +
pure nothrow V mSuffixTemplate(T)(lazy P p, T[] t...);
5

-
pure nothrow V mScoped(lazy P p); +
pure nothrow V mScoped(lazy P p);
6

-
pure nothrow auto mAutoPrefix(ref P p); +
pure nothrow auto mAutoPrefix(ref P p);
7

-
pure nothrow auto mAutoTemplateSuffix(alias T)(ref T t); +
pure nothrow auto mAutoTemplateSuffix(alias T)(ref T t);
9

-
pure nothrow V mColon(lazy P p); +
pure nothrow V mColon(lazy P p);
10

-
P variable; +
P variable;
0

-
V mNone(lazy P p); +
V mNone(lazy P p);
1

-
pure nothrow V mPrefix(lazy P p); +
pure nothrow V mPrefix(lazy P p);
2

-
pure nothrow V mSuffix(lazy P p); +
pure nothrow V mSuffix(lazy P p);
3

-
pure nothrow V mSuffixTemplate(T)(lazy P p, T[] t...); +
pure nothrow V mSuffixTemplate(T)(lazy P p, T[] t...);
5

-
pure nothrow V mScoped(lazy P p); +
pure nothrow V mScoped(lazy P p);
6

-
pure nothrow auto mAutoPrefix(ref P p); +
pure nothrow auto mAutoPrefix(ref P p);
7

-
pure nothrow auto mAutoTemplateSuffix(alias T)(ref T t); +
pure nothrow auto mAutoTemplateSuffix(alias T)(ref T t);
9

-
pure nothrow V mColon(lazy P p); +
pure nothrow V mColon(lazy P p);
10

diff --git a/test/compilable/extra-files/ddoc2.html b/test/compilable/extra-files/ddoc2.html index a90586261f71..e311fd3928ca 100644 --- a/test/compilable/extra-files/ddoc2.html +++ b/test/compilable/extra-files/ddoc2.html @@ -20,11 +20,11 @@

std.test

And more things.

-
class StreamException: object.Exception; +
class StreamException: object.Exception;
A base class for stream exceptions.

-
this(string msg, int foo); +
this(string msg, int foo);
Construct a StreamException with given error message msg.

@@ -38,7 +38,7 @@

std.test


-
int stars; +
int stars;
stars

diff --git a/test/compilable/extra-files/ddoc3.html b/test/compilable/extra-files/ddoc3.html index 52a86c539dae..b41f58df1112 100644 --- a/test/compilable/extra-files/ddoc3.html +++ b/test/compilable/extra-files/ddoc3.html @@ -40,11 +40,11 @@

std.test

(


-
class StreamException: object.Exception; +
class StreamException: object.Exception;
A base class for stream exceptions.

-
this(string msg, int foo); +
this(string msg, int foo);
Construct a StreamException with given error message msg.

@@ -58,7 +58,7 @@

std.test


-
int stars; +
int stars;
stars

diff --git a/test/compilable/extra-files/ddoc5.html b/test/compilable/extra-files/ddoc5.html index 8e44bfcdc8f9..e8bebf20e182 100644 --- a/test/compilable/extra-files/ddoc5.html +++ b/test/compilable/extra-files/ddoc5.html @@ -6,11 +6,11 @@

test

Test module

-
class TestMembers(TemplateArg); +
class TestMembers(TemplateArg);
class to test DDOC on members

-
void PublicStaticMethod(int idx); +
void PublicStaticMethod(int idx);
a static method

diff --git a/test/compilable/extra-files/ddoc6.html b/test/compilable/extra-files/ddoc6.html index 0211bed3da91..63624c30108f 100644 --- a/test/compilable/extra-files/ddoc6.html +++ b/test/compilable/extra-files/ddoc6.html @@ -4,7 +4,7 @@

ddoc6



-
struct MyStruct(T); +
struct MyStruct(T);


diff --git a/test/compilable/extra-files/ddoc6491.html b/test/compilable/extra-files/ddoc6491.html index a08cdae0745c..af7ed9797eda 100644 --- a/test/compilable/extra-files/ddoc6491.html +++ b/test/compilable/extra-files/ddoc6491.html @@ -4,7 +4,7 @@

ddoc6491



-
void bug6491a(int a = ddoc6491.c6491, string b = core.cpuid.vendor); +
void bug6491a(int a = ddoc6491.c6491, string b = core.cpuid.vendor);
test

diff --git a/test/compilable/extra-files/ddoc7.html b/test/compilable/extra-files/ddoc7.html index bdb9a9769edc..ea0c38a6dec6 100644 --- a/test/compilable/extra-files/ddoc7.html +++ b/test/compilable/extra-files/ddoc7.html @@ -4,91 +4,91 @@

ddoc7



-
enum E1; +
enum E1;
my enum

-
A
+
A
element a

-
B
+
B
element b

-
enum E2; +
enum E2;
my enum

-
A
+
A
element a

-
B
+
B
element b

-
enum E3; +
enum E3;
my enum

-
A
+
A
element a

-
B
+
B
element b

-
enum E4; +
enum E4;
my enum

-
A
+
A
element a

-
B
+
B
element b

-
enum E5; +
enum E5;
my enum

-
A
+
A
element a

-
B
+
B
element b

-
void foo(); +
void foo();
Some doc

-
alias bar; +
alias bar;
More doc

-
abstract class C; +
abstract class C;
asdf

-
abstract void foo(); +
abstract void foo();
Some doc

diff --git a/test/compilable/extra-files/ddoc8.html b/test/compilable/extra-files/ddoc8.html index 486ab078c67f..14917b9fe0c7 100644 --- a/test/compilable/extra-files/ddoc8.html +++ b/test/compilable/extra-files/ddoc8.html @@ -4,7 +4,7 @@

ddoc8



-
class Foo(T): Bar; +
class Foo(T): Bar;
foo

diff --git a/test/compilable/extra-files/ddoc9.html b/test/compilable/extra-files/ddoc9.html index 7de091141022..83d72a31e708 100644 --- a/test/compilable/extra-files/ddoc9.html +++ b/test/compilable/extra-files/ddoc9.html @@ -4,26 +4,26 @@

ddoc9



-
template Template(T)
+
template Template(T)
Template Documentation (OK)

-
void Function(T)(T x); +
void Function(T)(T x);
Function Documentation (Not included at all by DDoc)

-
class Class(T); +
class Class(T);
Class Documentation (OK)

-
struct Struct(T); +
struct Struct(T);
Struct Documentation

-
union Union(T); +
union Union(T);
Union Documentation