Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/dmd/backend/oper.d
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ int rel_unord(int op) { return _rel_unord [op - RELOPMIN]; }
/****************************************
* Conversion operators.
* Convert from conversion operator to conversion index
* parallel array invconvtab[] in cgelem.c)
* parallel array invconvtab[] in cgelem.c
* Params:
* op = conversion operator
*/
int convidx(OPER op) { return op - CNVOPMIN; }

Expand Down
5 changes: 3 additions & 2 deletions src/dmd/dinifile.d
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ void updateRealEnvironment(StringTable* environment)
* environment = our own cache of the program environment
* filename = name of the file being parsed
* path = what @P will expand to
* buffer[len] = contents of configuration file
* sections[] = section names
* length = length of the configuration file buffer
* buffer = contents of configuration file
* sections = section names
*/
void parseConfFile(StringTable* environment, const(char)* filename, const(char)* path, size_t length, ubyte* buffer, Strings* sections)
{
Expand Down
1 change: 0 additions & 1 deletion src/dmd/dtemplate.d
Original file line number Diff line number Diff line change
Expand Up @@ -6116,7 +6116,6 @@ extern (C++) class TemplateInstance : ScopeDsymbol
* Compare proposed template instantiation with existing template instantiation.
* Note that this is not commutative because of the auto ref check.
* Params:
* this = proposed template instantiation
* o = existing template instantiation
* Returns:
* 0 for match, 1 for no match
Expand Down
4 changes: 1 addition & 3 deletions src/dmd/e2ir.d
Original file line number Diff line number Diff line change
Expand Up @@ -5784,7 +5784,7 @@ private elem *appendDtors(IRState *irs, elem *er, size_t starti, size_t endi)
* temporaries created in elem.
* Params:
* e = Expression to convert
* irstate = context
* irs = context
* Returns:
* generated elem tree
*/
Expand Down Expand Up @@ -5825,8 +5825,6 @@ elem *toElemDtor(Expression e, IRState *irs)
* str = string
* len = number of code units in string
* sz = number of bytes per code unit
* comdat = emit string in its own comdat (default is read-only segment).
* Comdats are useful when linker does not coalesce redundant strings.
* Returns:
* Symbol
*/
Expand Down
5 changes: 4 additions & 1 deletion src/dmd/expression.d
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,12 @@ void emplaceExp(T : UnionExp)(T* p, Expression e)
* right `this` pointer if var is in an outer class, but our
* existing `this` pointer is in an inner class.
* Params:
* e1 = existing `this`
* loc = location to use for error messages
* sc = context
* ad = struct or class we need the correct `this` for
* e1 = existing `this`
* var = the specific member of ad we're accessing
* flag = if true, return `null` instead of throwing an error
* Returns:
* Expression representing the `this` for the var
*/
Expand Down
5 changes: 3 additions & 2 deletions src/dmd/func.d
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ extern (C++) class FuncDeclaration : Declaration
* this function overrides.
* Prefer an exact match to a covariant one.
* Params:
* vtbl = vtable to use
* dim = maximal vtable dimension
* fix17349 = enable fix https://issues.dlang.org/show_bug.cgi?id=17349
* Returns:
* -1 didn't find one
Expand Down Expand Up @@ -607,8 +609,6 @@ extern (C++) class FuncDeclaration : Declaration
/*********************************
* If function a function in a base class,
* return that base class.
* Params:
* cd = class that function is in
* Returns:
* base class if overriding, null if not
*/
Expand Down Expand Up @@ -2446,6 +2446,7 @@ private const(char)* prependSpace(const(char)* str)
* Params:
* loc = instantiation location
* sc = instantiation scope
* s = instantiation symbol
* tiargs = initial list of template arguments
* tthis = if !NULL, the `this` argument type
* fargs = arguments to function
Expand Down
2 changes: 2 additions & 0 deletions src/dmd/inlinecost.d
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ int inlineCostExpression(Expression e)
* Determine cost of inlining function
* Params:
* fd = function to determine cost of
* hasthis = if the function call has explicit 'this' expression
* hdrscan = if generating a header file
* Returns:
* cost of inlining fd
*/
Expand Down
4 changes: 4 additions & 0 deletions src/dmd/mtype.d
Original file line number Diff line number Diff line change
Expand Up @@ -2583,6 +2583,9 @@ extern (C++) abstract class Type : RootObject
/***************************************
* Access the members of the object e. This type is same as e.type.
* Params:
* sc = instantiating scope
* e = expression to convert
* ident = identifier being used
* flag = DotExpFlag bit flags
* Returns:
* resulting expression with e.ident resolved
Expand Down Expand Up @@ -9104,6 +9107,7 @@ extern (C++) final class Parameter : RootObject
* Compute covariance of parameters `this` and `p`
* as determined by the storage classes of both.
* Params:
* returnByRef = true if the function returns by ref
* p = Parameter to compare with
* Returns:
* true = `this` can be used in place of `p`
Expand Down
8 changes: 6 additions & 2 deletions src/dmd/parse.d
Original file line number Diff line number Diff line change
Expand Up @@ -6318,6 +6318,7 @@ final class Parser(AST) : Lexer
error(e.loc, "`%s` must be parenthesized when next to operator `%s`", e.toChars(), Token.toChars(value));
}

///
enum NeedDeclaratorId
{
no, // Declarator part must have no identifier
Expand All @@ -6329,9 +6330,12 @@ final class Parser(AST) : Lexer
/************************************
* Determine if the scanner is sitting on the start of a declaration.
* Params:
* needId
* t = current token of the scanner
* needId = flag with additional requirements for a declaration
* endtok = ending token
* pt = will be set ending token (if not null)
* Output:
* if *pt is not NULL, it is set to the ending token, which would be endtok
* true if the token `t` is a declaration, false otherwise
*/
bool isDeclaration(Token* t, NeedDeclaratorId needId, TOK endtok, Token** pt)
{
Expand Down
2 changes: 1 addition & 1 deletion src/dmd/statement.d
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ extern (C++) class CompoundStatement : Statement
*
* Params:
* loc = Instantiation information
* s = A variadic array of `Statement`s, that will copied in this class
* sts = A variadic array of `Statement`s, that will copied in this class
* The entries themselves will not be copied.
*/
final extern (D) this(Loc loc, Statement[] sts...)
Expand Down
3 changes: 3 additions & 0 deletions src/dmd/staticcond.d
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ import dmd.utils;
* level are not semantically analyzed if the result of the expression is not
* necessary.
* Params:
* sc = instantiating scope
* exp = original expression, for error messages
* e = resulting expression
* errors = set to `true` if errors occurred
* Returns:
* true if evaluates to true
*/
Expand Down
1 change: 1 addition & 0 deletions src/dmd/todt.d
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ extern (C++) void StructDeclaration_toDt(StructDeclaration sd, DtBuilder dtb)
* to the C++ RTTI symbol for cd.
* Params:
* cd = C++ class
* dtb = data table builder
*/
extern (C++) void cpp_type_info_ptr_toDt(ClassDeclaration cd, DtBuilder dtb)
{
Expand Down
4 changes: 2 additions & 2 deletions src/posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ HTMLS=$(addprefix $(DOC_OUTPUT_DIR)/, \
# For each module, define a rule e.g.:
# ../web/phobos/dmd_mars.html : dmd/mars.d $(STDDOC) ; ...
$(foreach p,$(SRC_DOCUMENTABLES),$(eval \
$(DOC_OUTPUT_DIR)/$(call D2HTML,$p) : $p $(STDDOC) $(HOST_DMD_PATH) ;\
$(HOST_DMD_RUN) -of- $(MODEL_FLAG) -J$G -J../res -c -Dd$(DOCSRC) -Idmd\
$(DOC_OUTPUT_DIR)/$(call D2HTML,$p) : $p $(STDDOC) $(DMD) ;\
$(DMD) -o- $(MODEL_FLAG) -J$G -J../res -c -w -Dd$(DOCSRC) -Idmd\
$(DFLAGS) project.ddoc $(STDDOC) -Df$$@ $$<))

$(DOC_OUTPUT_DIR) :
Expand Down