Comment sema: warn when comment has \deprecated but declaration does not have a
authorDmitri Gribenko <gribozavr@gmail.com>
Sat, 22 Sep 2012 21:47:50 +0000 (21:47 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Sat, 22 Sep 2012 21:47:50 +0000 (21:47 +0000)
commit1da888691587e6dd338b70b97c02a740e29c99dc
tree739b4ba38689ddb34c3b562b74a1aa911c4af934
parentd0885d2941d437026e60b79425a08cbf44ee069a
Comment sema: warn when comment has \deprecated but declaration does not have a
deprecation attribute ('deprecated', 'availability' or 'unavailable').

This warning is under a separate flag, -Wdocumentation-deprecated-sync, so it
can be turned off easily while leaving other -Wdocumentation warnings on.

llvm-svn: 164467
clang/include/clang/AST/CommentCommandTraits.h
clang/include/clang/AST/CommentCommands.td
clang/include/clang/AST/CommentSema.h
clang/include/clang/Basic/DiagnosticCommentKinds.td
clang/include/clang/Basic/DiagnosticGroups.td
clang/lib/AST/CommentSema.cpp
clang/test/Sema/warn-documentation-fixits.cpp
clang/test/Sema/warn-documentation.cpp
clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp