summaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-17 01:13:18 +0000
committerAlp Toker <alp@nuanti.com>2014-05-17 01:13:18 +0000
commit22062cfca2d97d2d90c1c8ecc962aa31069cff7b (patch)
tree7e96b00fea9f2bdc536fe3e8cfa73e9302f6c26a /lib/Sema/SemaInit.cpp
parent9785cd745a1c1c413951c9360c6b1c908b7813b2 (diff)
downloadclang-22062cfca2d97d2d90c1c8ecc962aa31069cff7b.tar.gz
clang-22062cfca2d97d2d90c1c8ecc962aa31069cff7b.tar.bz2
clang-22062cfca2d97d2d90c1c8ecc962aa31069cff7b.tar.xz
Tweak diagnostic wording for init list narrowing
The conventional form is '<action> to silence this warning'. Also call the diagnostic an 'issue' rather than a 'message' because the latter term is more widely used with reference to message expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r--lib/Sema/SemaInit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp
index 77bc4d38d2..fe1f7c8e74 100644
--- a/lib/Sema/SemaInit.cpp
+++ b/lib/Sema/SemaInit.cpp
@@ -7054,7 +7054,7 @@ static void DiagnoseNarrowingInInitList(Sema &S,
return;
}
OS << ">(";
- S.Diag(PostInit->getLocStart(), diag::note_init_list_narrowing_override)
+ S.Diag(PostInit->getLocStart(), diag::note_init_list_narrowing_silence)
<< PostInit->getSourceRange()
<< FixItHint::CreateInsertion(PostInit->getLocStart(), OS.str())
<< FixItHint::CreateInsertion(