[llvm-bugs] [Bug 44505] New: -Wdocumentation for enum template param

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 9 14:38:15 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=44505

            Bug ID: 44505
           Summary: -Wdocumentation for enum template param
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: a.huebl at hzdr.de
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Doxygen accepts @tparam annotations for templates that are scoped enums, such
as

enum struct MyEnum { A, B, C };

//! \tparam MyEnum this is a warning
template< enum MyEnum > struct A {};

But Clangs -Wdocumentation diagnostics issues this as a warning
  https://godbolt.org/z/L5YqyW

<source>:3:13: warning: template parameter 'MyEnum' not found in the template
declaration [-Wdocumentation]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200109/7ac6d459/attachment.html>


More information about the llvm-bugs mailing list