Adds a warning when an inline Doxygen comment has no argument
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 5 Aug 2019 08:05:16 +0000 (08:05 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 5 Aug 2019 08:05:16 +0000 (08:05 +0000)
commit657330ee0e41b90fa7f7b55fb7caa11f9c2c5369
treed4e0af1f4fd06d85d686fef679e185b0dd78ee7c
parent97ccf6b8c17d4837a413627af6db283a6a1bf162
Adds a warning when an inline Doxygen comment has no argument

Summary:
It warns for for comments like
/** \pre \em */

where \em has no argument

This warning is enabled with the -Wdocumentation option.

Reviewers: gribozavr, rsmith

Reviewed By: gribozavr

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D64696

Patch by Mark de Wever.

llvm-svn: 367809
clang/include/clang/Basic/DiagnosticCommentKinds.td
clang/lib/AST/CommentParser.cpp
clang/test/Sema/warn-documentation.cpp