[PATCH] D15366: [Clang] Use autos in lib/AST/ASTImporter.cpp
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 10 11:19:10 PST 2015
On Thu, Dec 10, 2015 at 2:11 PM, Eugene Zelenko
<eugene.zelenko at gmail.com> wrote:
> Eugene.Zelenko added inline comments.
>
> ================
> Comment at: lib/AST/ASTImporter.cpp:5855
> @@ -5888,3 +5854,3 @@
> }
> - else if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)) {
> + else if (auto *PD = dyn_cast<ObjCProtocolDecl>(D)) {
> if (!PD->getDefinition())
> ----------------
> aaron.ballman wrote:
>> Can you fix the formatting here while you're at it? (Same below.)
> Sorry, I do see problem. Could you please elaborate more?
Sure! Right now, it reads:
}
else if (...) {
It should read:
} else if (...) {
(moving the else to the same line as the closing curly brace above it).
~Aaron
>
>
> Repository:
> rL LLVM
>
> http://reviews.llvm.org/D15366
>
>
>
More information about the cfe-commits
mailing list