LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 25499 - Extend modernize-use-auto to casts
Summary: Extend modernize-use-auto to casts
Status: RESOLVED FIXED
Alias: None
Product: clang-tools-extra
Classification: Unclassified
Component: clang-tidy (show other bugs)
Version: unspecified
Hardware: All All
: P enhancement
Assignee: Malcolm Parsons
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 20:23 PST by Eugene Zelenko
Modified: 2016-11-01 05:09 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Zelenko 2015-11-11 20:23:24 PST
I think will be good idea to extend modernize-use-auto to cases when variable is assigned with cast, like:

Type *Ptr1 = dynamic_cast<Type*>(Ptr2);

Same could be done for LLVM casts.
Comment 1 Malcolm Parsons 2016-10-06 07:10:58 PDT
https://reviews.llvm.org/D25316
Comment 2 Malcolm Parsons 2016-11-01 05:09:55 PDT
Fixed by rL285579.

(In reply to comment #0)
> Same could be done for LLVM casts.

Leaving for bug 26763.