diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2018-11-06 05:41:33 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2018-11-06 05:41:33 +0000 |
commit | b17ebff627415bdbe37e5c8c1c3926edb1c349ed (patch) | |
tree | 93e2ef0701decbb6e0c9c14c358e09dd7039c84f /clang/lib/AST/PrintfFormatString.cpp | |
parent | 574caddc0dd2e9303ad347937583d41253a500e6 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |