diff options
author | Vedant Kumar <vsk@apple.com> | 2016-02-16 02:14:44 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-02-16 02:14:44 +0000 |
commit | 409506ea07a52d43192a64be819dee29d030eaac (patch) | |
tree | 3820b9f33b68e2d94d34aa7aa460530e1f949333 /clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp | |
parent | 98372e327b619188166a0645748c7d421e95df35 (diff) | |
download | bcm5719-llvm-409506ea07a52d43192a64be819dee29d030eaac.tar.gz bcm5719-llvm-409506ea07a52d43192a64be819dee29d030eaac.zip |
Simplify users of StringRef::{l,r}trim (clang) (NFC)
r260925 introduced a version of the *trim methods which is preferable
when trimming a single kind of character. Update all users in clang.
llvm-svn: 260927
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp index 504b8b30187..a25f3e01c91 100644 --- a/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp @@ -1000,7 +1000,7 @@ void EmptyLocalizationContextChecker::MethodCrawler::VisitObjCMessageExpr( return; StringRef Comment = - StringRef(Result.getLiteralData(), Result.getLength()).trim("\""); + StringRef(Result.getLiteralData(), Result.getLength()).trim('"'); if ((Comment.trim().size() == 0 && Comment.size() > 0) || // Is Whitespace Comment.empty()) { |