aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/dmd/hdrgen.h
blob: 14793ad23a8a7def8e76ae16efc536bc9ac61010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

/* Compiler implementation of the D programming language
 * Copyright (C) 1999-2024 by The D Language Foundation, All Rights Reserved
 * written by Dave Fladebo
 * https://www.digitalmars.com
 * Distributed under the Boost Software License, Version 1.0.
 * https://www.boost.org/LICENSE_1_0.txt
 * https://github.com/dlang/dmd/blob/master/src/dmd/hdrgen.h
 */

#pragma once

#include "globals.h"
#include "mtype.h"

class Expression;
class Initializer;
class Module;
class Statement;

namespace dmd
{
    void genhdrfile(Module *m, bool doFuncBodies, OutBuffer &buf);
    void genCppHdrFiles(Modules &ms);
    void moduleToBuffer(OutBuffer& buf, bool vcg_ast, Module *m);
    const char *parametersTypeToChars(ParameterList pl);

    const char* toChars(const Expression* const e);
    const char* toChars(const Initializer* const i);
    const char* toChars(const Statement* const s);
    const char* toChars(const Type* const t);
}