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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to