]> granicus.if.org Git - clang/commit
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)
commit0bd9838751384181ff387f2fb346896792b89617
tree4cd487eea2b5f4211d1a9cbe6c7210e71c3ff182
parent4bc38d69a2cf391555644900d78d074634973aa5
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164467 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/CommentCommandTraits.h
include/clang/AST/CommentCommands.td
include/clang/AST/CommentSema.h
include/clang/Basic/DiagnosticCommentKinds.td
include/clang/Basic/DiagnosticGroups.td
lib/AST/CommentSema.cpp
test/Sema/warn-documentation-fixits.cpp
test/Sema/warn-documentation.cpp
utils/TableGen/ClangCommentCommandInfoEmitter.cpp