summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Pragma.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erikjv@me.com>2016-10-26 13:06:13 +0000
committerErik Verbruggen <erikjv@me.com>2016-10-26 13:06:13 +0000
commite4fd6522c19040782aed6b5acc218e94034d71e5 (patch)
tree1ccca3e613a972a428ff8c1a5d578a3f609073d8 /clang/lib/Lex/Pragma.cpp
parent3f515cd795872e40bcd84ea42d74ec0e812d939a (diff)
downloadbcm5719-llvm-e4fd6522c19040782aed6b5acc218e94034d71e5.tar.gz
bcm5719-llvm-e4fd6522c19040782aed6b5acc218e94034d71e5.zip
[PP] Replace some index based for loops with range based ones
While in the area, also change some unsigned variables to size_t, and introduce an LLVM_FALLTHROUGH instead of a comment stating that. Differential Revision: http://reviews.llvm.org/D25982 llvm-svn: 285193
Diffstat (limited to 'clang/lib/Lex/Pragma.cpp')
-rw-r--r--clang/lib/Lex/Pragma.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Pragma.cpp b/clang/lib/Lex/Pragma.cpp
index 206722347eb..2c04a2d57c0 100644
--- a/clang/lib/Lex/Pragma.cpp
+++ b/clang/lib/Lex/Pragma.cpp
@@ -281,7 +281,7 @@ void Preprocessor::Handle_Pragma(Token &Tok) {
// Remove escaped quotes and escapes.
unsigned ResultPos = 1;
- for (unsigned i = 1, e = StrVal.size() - 1; i != e; ++i) {
+ for (size_t i = 1, e = StrVal.size() - 1; i != e; ++i) {
// Skip escapes. \\ -> '\' and \" -> '"'.
if (StrVal[i] == '\\' && i + 1 < e &&
(StrVal[i + 1] == '\\' || StrVal[i + 1] == '"'))
OpenPOWER on IntegriCloud