diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-08-17 23:08:45 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-08-17 23:08:45 +0000 |
commit | 6fdf38bfbd4d19b60b21498f07772ee30a0cca78 (patch) | |
tree | 2762c433a4976fde6065298ea07842d371e1e19d /clang/lib/Analysis/PrintfFormatString.cpp | |
parent | e3bdcd0ea830e76f116829f44c4bef7ec986884a (diff) | |
download | bcm5719-llvm-6fdf38bfbd4d19b60b21498f07772ee30a0cca78.tar.gz bcm5719-llvm-6fdf38bfbd4d19b60b21498f07772ee30a0cca78.zip |
Fix else style. No functionality change intended.
llvm-svn: 137896
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
-rw-r--r-- | clang/lib/Analysis/PrintfFormatString.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp index 8b23a071d98..eb018f1eb5f 100644 --- a/clang/lib/Analysis/PrintfFormatString.cpp +++ b/clang/lib/Analysis/PrintfFormatString.cpp @@ -38,8 +38,7 @@ static bool ParsePrecision(FormatStringHandler &H, PrintfSpecifier &FS, unsigned *argIndex) { if (argIndex) { FS.setPrecision(ParseNonPositionAmount(Beg, E, *argIndex)); - } - else { + } else { const OptionalAmount Amt = ParsePositionAmount(H, Start, Beg, E, analyze_format_string::PrecisionPos); if (Amt.isInvalid()) @@ -461,8 +460,7 @@ bool PrintfSpecifier::fixType(QualType QT) { CS.setKind(ConversionSpecifier::uArg); HasAlternativeForm = 0; HasPlusPrefix = 0; - } - else { + } else { assert(0 && "Unexpected type"); } |