r353837 - Fixing a typo; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 12 05:04:12 PST 2019
Author: aaronballman
Date: Tue Feb 12 05:04:11 2019
New Revision: 353837
URL: http://llvm.org/viewvc/llvm-project?rev=353837&view=rev
Log:
Fixing a typo; NFC.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=353837&r1=353836&r2=353837&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Tue Feb 12 05:04:11 2019
@@ -2527,7 +2527,7 @@ def err_attribute_argument_n_type : Erro
def err_attribute_argument_type : Error<
"%0 attribute requires %select{int or bool|an integer "
"constant|a string|an identifier}1">;
-def err_attribute_argument_outof_range : Error<
+def err_attribute_argument_out_of_range : Error<
"%0 attribute requires integer constant between %1 and %2 inclusive">;
def err_init_priority_object_attr : Error<
"can only use 'init_priority' attribute on file-scope definitions "
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=353837&r1=353836&r2=353837&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Tue Feb 12 05:04:11 2019
@@ -1118,7 +1118,7 @@ static void handlePassObjectSizeAttr(Sem
// __builtin_object_size. So, it has the same constraints as that second
// argument; namely, it must be in the range [0, 3].
if (Type > 3) {
- S.Diag(E->getBeginLoc(), diag::err_attribute_argument_outof_range)
+ S.Diag(E->getBeginLoc(), diag::err_attribute_argument_out_of_range)
<< AL << 0 << 3 << E->getSourceRange();
return;
}
@@ -3299,7 +3299,7 @@ static void handleInitPriorityAttr(Sema
}
if (prioritynum < 101 || prioritynum > 65535) {
- S.Diag(AL.getLoc(), diag::err_attribute_argument_outof_range)
+ S.Diag(AL.getLoc(), diag::err_attribute_argument_out_of_range)
<< E->getSourceRange() << AL << 101 << 65535;
AL.setInvalid();
return;
@@ -6434,7 +6434,7 @@ static void handleFortifyStdLib(Sema &S,
if (BOSType > 3) {
S.Diag(AL.getArgAsExpr(0)->getBeginLoc(),
- diag::err_attribute_argument_outof_range)
+ diag::err_attribute_argument_out_of_range)
<< AL << 0 << 3;
return;
}
More information about the cfe-commits
mailing list