This is an archive of the discontinued LLVM Phabricator instance.

NFC Changes from modernize-use-auto
AbandonedPublic

Authored by Prazek on Dec 14 2016, 10:55 AM.

Details

Summary

Changes in LLVM code to satisfy Use auto Type Deduction to Make Code More Readable rule in LLVM coding standards.

modernize-use-auto is clang-tidy check.

Diff Detail

Event Timeline

Prazek updated this revision to Diff 81420.Dec 14 2016, 10:55 AM
Prazek retitled this revision from to NFC Changes from modernize-use-auto.
Prazek updated this object.
Prazek added reviewers: mehdi_amini, rsmith, alexfh.
Prazek added a subscriber: cfe-commits.
malcolm.parsons added inline comments.
lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp
106

The check missed this one.

Prazek added inline comments.Dec 15 2016, 9:03 AM
lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp
106

I don't think it is miss if getLocationAs<T> returns Optional<T>, because that would suggest that it returns T

Prazek abandoned this revision.May 17 2017, 10:54 AM