Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hdrgen: remove trailing whitespace on attribute declarations
Fixes Issue 22353. Signed-off-by: Luís Ferreira <contact@lsferreira.net>
- Loading branch information
Showing
4 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
REQUIRED_ARGS: -o- -Hf${RESULTS_DIR}/compilable/hdrgen_dip1029.di | ||
PERMUTE_ARGS: | ||
OUTPUT_FILES: ${RESULTS_DIR}/compilable/hdrgen_dip1029.di | ||
TEST_OUTPUT: | ||
--- | ||
=== ${RESULTS_DIR}/compilable/hdrgen_dip1029.di | ||
// D import file generated from 'compilable/hdrgen_dip1029.d' | ||
module foo.bar.foobar.baz; | ||
void foo(); | ||
throw void foobar(); | ||
nothrow void bar(); | ||
nothrow | ||
{ | ||
throw void n_t(); | ||
void n(); | ||
} | ||
void _t(); | ||
throw void t(); | ||
struct S | ||
{ | ||
throw void foo(); | ||
} | ||
class CA | ||
{ | ||
void foo(); | ||
} | ||
class CB : CA | ||
{ | ||
override @nogc void foo(); | ||
} | ||
nothrow | ||
{ | ||
void t2(); | ||
throw nothrow void n2(); | ||
} | ||
--- | ||
*/ | ||
module foo.bar.foobar.baz; | ||
|
||
void foo() {} | ||
|
||
void foobar() throw {} | ||
void bar() nothrow {} | ||
|
||
nothrow { | ||
void n_t() throw; | ||
void n(); | ||
} | ||
|
||
void _t(); | ||
void t() throw; | ||
|
||
struct S { | ||
void foo() { | ||
_t(); | ||
t(); | ||
n_t(); | ||
} | ||
} | ||
|
||
// class inheritance | ||
class CA { | ||
void foo() throw; | ||
} | ||
|
||
class CB : CA { | ||
override void foo() @nogc; | ||
} | ||
|
||
nothrow: | ||
void t2() throw; | ||
|
||
throw: | ||
void n2() nothrow; |