]> granicus.if.org Git - clang/commit
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)
commitf601e2054464b79d5cba6182867fc68604204ffa
tree87156723d3e5936d63280295683f8931e6ac83f2
parent06fe985aee144eb8922b820435dffe486acbe1f4
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367809 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticCommentKinds.td
lib/AST/CommentParser.cpp
test/Sema/warn-documentation.cpp