Autos are also used for pointer variables assigned via casts or memory allocation. Patch includes other minor cleanups.
Build and regressions were fine on RHEL 6.
Differential D15366
[Clang] Use autos in lib/AST/ASTImporter.cpp AbandonedPublic Authored by Eugene.Zelenko on Dec 8 2015, 5:54 PM.
Details
Summary Autos are also used for pointer variables assigned via casts or memory allocation. Patch includes other minor cleanups. Build and regressions were fine on RHEL 6.
Diff Detail Event TimelineEugene.Zelenko updated this object.
Revision Contents
Diff 42259 lib/AST/ASTImporter.cpp
|
I don't think it is an improvement when the deduced type is written on the subsequent line (here and elsewhere). I wonder if that's something we can teach clang-format. e.g.,
would be an improvement, but only in the case where the declaration type needs to be deduced.