https://bugs.llvm.org/show_bug.cgi?id=35144
Bug ID: 35144
Summary: -Wdocumentation produces false positive for \tparam
with instantiated function
Product: clang
Version: 5.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: techmeol...@techmeology.co.uk
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
Created attachment 19363
--> https://bugs.llvm.org/attachment.cgi?id=19363&action=edit
Reproducer
Steps to reproduce:
1) Compile the `bug.cpp` with `clang++ -Wdocumentation -c bug.cpp` using Clang
5.0
2) Comment out line 7, and recompile as in step 1.
Expected results:
No warning should be emitted for either of the two steps above.
Actual results:
The following warning is emitted at step 1, but not step 2:
bug.cpp:2:5: warning: '\tparam' command used in a comment that is not attached
to a template declaration [-Wdocumentation]
* \tparam T The type of the inputs' elements.
^~~~~~
1 warning generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs