aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/d-lang.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-06-16 16:23:44 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-06-16 23:39:23 +0200
commitaf3c19f0a5072199f70571a30271a0ee9a4ae5ce (patch)
tree0725a38c694476f76a353be38e0f44857e85ca91 /gcc/d/d-lang.cc
parentcdbf48bed4e947f8d20c8c22d400fb52a407d46f (diff)
downloadgcc-af3c19f0a5072199f70571a30271a0ee9a4ae5ce.zip
gcc-af3c19f0a5072199f70571a30271a0ee9a4ae5ce.tar.gz
gcc-af3c19f0a5072199f70571a30271a0ee9a4ae5ce.tar.bz2
d: Update code formatting in a consistent style.
gcc/d/ChangeLog: * d-attribs.cc: Update code formatting in a consistant style. * d-builtins.cc: Likewise. * d-codegen.cc: Likewise. * d-compiler.cc: Likewise. * d-convert.cc: Likewise. * d-diagnostic.cc: Likewise. * d-frontend.cc: Likewise. * d-lang.cc: Likewise. * d-longdouble.cc: Likewise. * d-port.cc: Likewise. * d-spec.cc: Likewise. * d-tree.h: Likewise. * decl.cc: Likewise. * expr.cc: Likewise. * longdouble.h: Likewise. * modules.cc: Likewise. * toir.cc: Likewise. * typeinfo.cc: Likewise.
Diffstat (limited to 'gcc/d/d-lang.cc')
-rw-r--r--gcc/d/d-lang.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc
index dd5a83c..82e24de 100644
--- a/gcc/d/d-lang.cc
+++ b/gcc/d/d-lang.cc
@@ -95,7 +95,7 @@ struct binding_level *global_binding_level;
static GTY(()) tree global_context;
/* Array of all global declarations to pass back to the middle-end. */
-static GTY(()) vec<tree, va_gc> *global_declarations;
+static GTY(()) vec <tree, va_gc> *global_declarations;
/* Support for GCC-style command-line make dependency generation.
Adds TARGET to the make dependencies target buffer.
@@ -366,7 +366,7 @@ d_init (void)
Objc::_init ();
/* Back-end init. */
- global_binding_level = ggc_cleared_alloc<binding_level> ();
+ global_binding_level = ggc_cleared_alloc <binding_level> ();
current_binding_level = global_binding_level;
/* This allows the code in d-builtins.cc to not have to worry about
@@ -1142,7 +1142,7 @@ d_parse_file (void)
unsigned errors = global.startGagging ();
Module *m = Module::load (Loc (), NULL, Identifier::idPool ("__main"));
- if (! global.endGagging (errors))
+ if (!global.endGagging (errors))
{
m->importedFrom = m;
modules.push (m);
@@ -1774,7 +1774,7 @@ d_tree_node_structure (lang_tree_node *t)
struct lang_type *
build_lang_type (Type *t)
{
- struct lang_type *lt = ggc_cleared_alloc<struct lang_type> ();
+ struct lang_type *lt = ggc_cleared_alloc <struct lang_type> ();
lt->type = t;
return lt;
}
@@ -1788,11 +1788,11 @@ build_lang_decl (Declaration *d)
there's no associated frontend symbol to refer to (yet). If the symbol
appears later in the compilation, then the slot will be re-used. */
if (d == NULL)
- return ggc_cleared_alloc<struct lang_decl> ();
+ return ggc_cleared_alloc <struct lang_decl> ();
struct lang_decl *ld = (d->csym) ? DECL_LANG_SPECIFIC (d->csym) : NULL;
if (ld == NULL)
- ld = ggc_cleared_alloc<struct lang_decl> ();
+ ld = ggc_cleared_alloc <struct lang_decl> ();
if (ld->decl == NULL)
ld->decl = d;
@@ -1806,10 +1806,10 @@ build_lang_decl (Declaration *d)
static void
d_dup_lang_specific_decl (tree node)
{
- if (! DECL_LANG_SPECIFIC (node))
+ if (!DECL_LANG_SPECIFIC (node))
return;
- struct lang_decl *ld = ggc_alloc<struct lang_decl> ();
+ struct lang_decl *ld = ggc_alloc <struct lang_decl> ();
memcpy (ld, DECL_LANG_SPECIFIC (node), sizeof (struct lang_decl));
DECL_LANG_SPECIFIC (node) = ld;
}