summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/PrintfFormatString.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2018-11-06 05:41:33 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2018-11-06 05:41:33 +0000
commitb17ebff627415bdbe37e5c8c1c3926edb1c349ed (patch)
tree93e2ef0701decbb6e0c9c14c358e09dd7039c84f /clang/lib/AST/PrintfFormatString.cpp
parent574caddc0dd2e9303ad347937583d41253a500e6 (diff)
downloadbcm5719-llvm-b17ebff627415bdbe37e5c8c1c3926edb1c349ed.tar.gz
bcm5719-llvm-b17ebff627415bdbe37e5c8c1c3926edb1c349ed.zip
os_log: Minor code cleanups. NFC.
Also, add a new test case and fix an incorrect comment. llvm-svn: 346209
Diffstat (limited to 'clang/lib/AST/PrintfFormatString.cpp')
-rw-r--r--clang/lib/AST/PrintfFormatString.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/PrintfFormatString.cpp b/clang/lib/AST/PrintfFormatString.cpp
index 96a8f258ed3..71c28de99c9 100644
--- a/clang/lib/AST/PrintfFormatString.cpp
+++ b/clang/lib/AST/PrintfFormatString.cpp
@@ -127,7 +127,7 @@ static PrintfSpecifierResult ParsePrintfSpecifier(FormatStringHandler &H,
do {
StringRef Str(I, E - I);
- std::string Match = "^[\t\n\v\f\r ]*(private|public)[\t\n\v\f\r ]*(,|})";
+ std::string Match = "^[[:space:]]*(private|public)[[:space:]]*(,|})";
llvm::Regex R(Match);
SmallVector<StringRef, 2> Matches;
OpenPOWER on IntegriCloud