<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - -Wdocumentation-unknown-command requires -Wdocumentation"
   href="http://llvm.org/bugs/show_bug.cgi?id=19068">19068</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-Wdocumentation-unknown-command requires -Wdocumentation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>quality-of-implementation
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jonathan.sauer@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Take the following program where an unknown Doxygen command is used:

/**
 * \unknown unknowns
 */
int main() {}


Compiling with clang r201876 and only -Wdocumentation-unknown-command results
in no warning at all. It is necessary to compile with both
-Wdocumentation-unknown-command -Wdocumentation to get the expected warning:

% ~/LLVM/build/Release+Asserts/bin/clang++ -Wdocumentation-unknown-command
-Wdocumentation clang.cpp
clang.cpp:2:4: warning: unknown command tag name
[-Wdocumentation-unknown-command]
 * \unknown     Unknown.
   ^
1 warning generated.


While it can be expected that users who use -Wdocumentation-unknown-command
will also use -Wdocumentation, this behavior is still surprising.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>