diff options
Diffstat (limited to 'gcc/d/dmd/hdrgen.h')
-rw-r--r-- | gcc/d/dmd/hdrgen.h | 43 |
1 files changed, 5 insertions, 38 deletions
diff --git a/gcc/d/dmd/hdrgen.h b/gcc/d/dmd/hdrgen.h index 6822aaf44a9..531d5d8c0da 100644 --- a/gcc/d/dmd/hdrgen.h +++ b/gcc/d/dmd/hdrgen.h @@ -10,45 +10,12 @@ #pragma once -#include "root/dsystem.h" // memset() -#include "dsymbol.h" +#include "globals.h" +#include "mtype.h" -void genhdrfile(Module *m); - -struct HdrGenState -{ - bool hdrgen; // true if generating header file - bool ddoc; // true if generating Ddoc file - bool fullDump; // true if generating a full AST dump file - bool fullQual; // fully qualify types when printing - int tpltMember; - int autoMember; - int forStmtInit; - - HdrGenState() { memset(this, 0, sizeof(HdrGenState)); } -}; - -void toCBuffer(Statement *s, OutBuffer *buf, HdrGenState *hgs); -void toCBuffer(Type *t, OutBuffer *buf, Identifier *ident, HdrGenState *hgs); -void toCBuffer(Dsymbol *s, OutBuffer *buf, HdrGenState *hgs); -void toCBuffer(Initializer *iz, OutBuffer *buf, HdrGenState *hgs); -void toCBuffer(Expression *e, OutBuffer *buf, HdrGenState *hgs); -void toCBuffer(TemplateParameter *tp, OutBuffer *buf, HdrGenState *hgs); - -void toCBufferInstance(TemplateInstance *ti, OutBuffer *buf, bool qualifyTypes = false); - -void functionToBufferFull(TypeFunction *tf, OutBuffer *buf, Identifier *ident, HdrGenState* hgs, TemplateDeclaration *td); -void functionToBufferWithIdent(TypeFunction *t, OutBuffer *buf, const char *ident); - -void argExpTypesToCBuffer(OutBuffer *buf, Expressions *arguments); - -void arrayObjectsToBuffer(OutBuffer *buf, Objects *objects); +class Module; +void genhdrfile(Module *m); +void genCppHdrFiles(Modules &ms); void moduleToBuffer(OutBuffer *buf, Module *m); - const char *parametersTypeToChars(ParameterList pl); -const char *parameterToChars(Parameter *parameter, TypeFunction *tf, bool fullQual); - -bool stcToBuffer(OutBuffer *buf, StorageClass stc); -const char *stcToChars(StorageClass& stc); -const char *linkageToChars(LINK linkage); |