Report a bug
		
				If you spot a problem with this page, click here to create a Bugzilla issue.
		
			Improve this page
		
			Quickly fork, edit online, and submit a pull request for this page.
			Requires a signed-in GitHub account. This works well for small changes.
			If you'd like to make larger changes you may want to consider using
			a local clone.
		
	dmd.hdrgen
Generate D interface files.
Also used to convert AST nodes to D code in general, e.g. for error messages or printf debugging.
Authors: 
License: 
Source hdrgen.d
Documentation https://dlang.org/phobos/dmd_hdrgen.html
- voidgenhdrfile(Modulem, booldoFuncBodies, ref OutBufferbuf);
- Generate a header (.di) file for Module m.Parameters:Module mModule to generate header for bool doFuncBodiesgenerate function definitions rather than just declarations OutBuffer bufbuffer to write the data to 
- const(char)*toErrMsg(const RootObjecto);
 const(char)*toErrMsg(const Expressione);
 const(char)*toErrMsg(const Dsymbold);
- Convertoto a string for error messages.Parameters:Expression eobject to convert Returns:string representation ofe
- const(char)*toChars(const Statements);
- Turn a Statement into a string suitable for printf. Leaks memory.Parameters:Statement sStatement to convert Returns:0-terminated string
- voidmoduleToBuffer(ref OutBufferbuf, boolvcg_ast, Modulem);
- Dumps the full contents of modulemtobuf.Parameters:OutBuffer bufbuffer to write to. bool vcg_astwrite out codegen ast Module mmodule to visit all members of. 
- voidfloatToBuffer(Typetype, const real_tvalue, ref OutBufferbuf, const boolallowHex);
- Formatsvalueas a literal of typetypeintobuf.Parameters:Type typeliteral type (e.g. Tfloat) real_t valuevalue to print OutBuffer buftarget buffer bool allowHexwhether hex floating point literals may be used for greater accuracy 
- @safe stringstcToString(ref STCstc);
- Pick off one of the storage classes from stc, and return a string representation of it. stc is reduced by the one picked.
- const(char)*visibilityToChars(Visibility.Kindkind);
 pure nothrow @safe stringvisibilityToString(Visibility.Kindkind);
- Returns:a human readable representation ofkind
- voidargExpTypesToCBuffer(ref OutBufferbuf, Expressions*arguments);
- Write out argument types to buf.
- const(char)*parametersTypeToChars(ParameterListpl);
- Pretty print function parameters.Parameters:ParameterList plparameter list to print Returns:Null-terminated string representing parameters.
- const(char)*parameterToChars(Parameterparameter, TypeFunctiontf, boolfullQual);
- Pretty print function parameter.Parameters:Parameter parameterparameter to print. TypeFunction tfTypeFunction which holds parameter. bool fullQualwhether to fully qualify types. Returns:Null-terminated string representing parameters.
- stringEXPtoString(EXPop);
- Convert EXP to char*.
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:55 2025