mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 23:50:31 +03:00
Fix bracing style.
This commit is contained in:
parent
89bf88f2e1
commit
09e5a3ccc7
1 changed files with 4 additions and 2 deletions
|
@ -7656,13 +7656,15 @@ template getUDAs(alias symbol, alias attribute)
|
||||||
* This is not recursive; it will not search for symbols within symbols such as
|
* This is not recursive; it will not search for symbols within symbols such as
|
||||||
* nested structs or unions.
|
* nested structs or unions.
|
||||||
*/
|
*/
|
||||||
template getSymbolsByUDA(alias symbol, alias attribute) {
|
template getSymbolsByUDA(alias symbol, alias attribute)
|
||||||
|
{
|
||||||
import std.format : format;
|
import std.format : format;
|
||||||
import std.meta : AliasSeq, Filter;
|
import std.meta : AliasSeq, Filter;
|
||||||
|
|
||||||
// translate a list of strings into symbols. mixing in the entire alias
|
// translate a list of strings into symbols. mixing in the entire alias
|
||||||
// avoids trying to access the symbol, which could cause a privacy violation
|
// avoids trying to access the symbol, which could cause a privacy violation
|
||||||
template toSymbols(names...) {
|
template toSymbols(names...)
|
||||||
|
{
|
||||||
static if (names.length == 0)
|
static if (names.length == 0)
|
||||||
alias toSymbols = AliasSeq!();
|
alias toSymbols = AliasSeq!();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue