www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9714] New: Ddoc: Combination of -D and -unittest reveals hidden unittest function

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9714

           Summary: Ddoc: Combination of -D and -unittest reveals hidden
                    unittest function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ddoc
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2013-03-14 01:15:11 PDT ---
/// test
void fooNoDescription() {}
///
unittest { fooNoDescription(); }


Command:
$ dmd -unittest -D test


Output:

test

void fooNoDescription();
desc

Example:
fooNoDescription(); 


void __unittestL4_1();    <---- bug

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 14 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9714


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-03-14 03:46:33 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1746

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9714



--- Comment #2 from github-bugzilla puremagic.com 2013-03-19 20:32:15 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/11b2f76857c8a2d8fa14c0b6b3c69d60b4e5180c
fix Issue 9714 - Ddoc: Combination of -D and -unittest reveals hidden unittest
function

Even if -unittest is specified, hidden function should not be appeared in ddoc
output

https://github.com/D-Programming-Language/dmd/commit/d736fbf10ff41f2e96303fd1efa7eaa7c696eafb
Merge pull request #1746 from 9rnsr/fix_ddoc

Issue 9713 & 9714 - Ddoc bug fixes

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 19 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9714


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 19 2013