[LLVMbugs] [Bug 14295] New: -Wdocumentation warns on duplicate \return comments, but the doxygen docs allow that
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Nov 8 10:39:58 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14295
Bug #: 14295
Summary: -Wdocumentation warns on duplicate \return comments,
but the doxygen docs allow that
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I just tried -Wdocumentation on a project that had a comment like this:
/// @return the number of processors on the machine. Useful for an initial
/// guess for how many jobs to run in parallel. @return 0 on error.
int GetProcessorCount();
http://www.stack.nl/~dimitri/doxygen/commands.html#cmdreturn says "Multiple
adjacent \return commands will be joined into a single paragraph.", but
-Wdocumentation says:
src/util.h:61:51: warning: duplicated command '\return' [-Wdocumentation]
/// guess for how many jobs to run in parallel. @return 0 on error.
~^~~~~~~~~~~~~~~~~~
src/util.h:60:6: note: previous command '\return' here
/// @return the number of processors on the machine. Useful for an initial
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
It seems like clang shouldn't warn about this.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list