summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/loopvartoosmall.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-29 09:59:20 +0200
committerNoel Grandin <noel@peralex.com>2015-06-01 09:58:56 +0200
commit55bc128636596032c23ee855904822ad813986fc (patch)
treeba097deaf15579f0148a68679d915e3ba25d52c4 /compilerplugins/clang/loopvartoosmall.cxx
parentc9fd4aa8aa969ef2b669813acee15d6efcf1ecde (diff)
loplugin:loopvartoosmall
Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
Diffstat (limited to 'compilerplugins/clang/loopvartoosmall.cxx')
-rw-r--r--compilerplugins/clang/loopvartoosmall.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/loopvartoosmall.cxx b/compilerplugins/clang/loopvartoosmall.cxx
index bba88548f9eb..adcc2c5656d0 100644
--- a/compilerplugins/clang/loopvartoosmall.cxx
+++ b/compilerplugins/clang/loopvartoosmall.cxx
@@ -103,7 +103,7 @@ bool LoopVarTooSmall::VisitForStmt( const ForStmt* stmt )
if (qt1BitWidth < qt2BitWidth) {
report(
DiagnosticsEngine::Warning,
- "loop index type is smaller than length type. " + qt.getAsString() + " < " + qt2.getAsString(),
+ "loop index type is narrower than length type. " + qt.getAsString() + " < " + qt2.getAsString(),
stmt->getInit()->getLocStart())
<< stmt->getInit()->getSourceRange();
//stmt->getCond()->dump();