summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2019-12-10 18:32:28 +0100
committerMark de Wever <koraq@xs4all.nl>2019-12-10 21:16:07 +0100
commit85fff898bb3175693e12536a837c8ad0ec8b2cdd (patch)
tree5c9b88e6f0646d01814126d15894db6b05fe297b /clang/lib
parent9fbfdd2bfe42a6d0a8e680c64a968e9cfc065fd3 (diff)
downloadbcm5719-llvm-85fff898bb3175693e12536a837c8ad0ec8b2cdd.tar.gz
bcm5719-llvm-85fff898bb3175693e12536a837c8ad0ec8b2cdd.zip
[Wdocumentation] Use the command marker.
Use the proper marker for -Wdocumentation-deprecated-sync instead of hard-coded the backslash. Discovered while looking at https://bugs.llvm.org/show_bug.cgi?id=43753 Differential Revision: https://reviews.llvm.org/D71139
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/CommentSema.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/AST/CommentSema.cpp b/clang/lib/AST/CommentSema.cpp
index 69d61dc5516..bef555d3ebe 100644
--- a/clang/lib/AST/CommentSema.cpp
+++ b/clang/lib/AST/CommentSema.cpp
@@ -676,9 +676,8 @@ void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) {
D->hasAttr<UnavailableAttr>())
return;
- Diag(Command->getLocation(),
- diag::warn_doc_deprecated_not_sync)
- << Command->getSourceRange();
+ Diag(Command->getLocation(), diag::warn_doc_deprecated_not_sync)
+ << Command->getSourceRange() << Command->getCommandMarker();
// Try to emit a fixit with a deprecation attribute.
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
OpenPOWER on IntegriCloud