This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Fix some Clang-tidy modernize-use-bool-literals and Include What You Use warnings; other minor fixes
AcceptedPublic

Authored by Eugene.Zelenko on Sep 9 2016, 7:14 PM.

Details

Summary

I checked this patch on my own build on RHEL 6. Regressions were OK.

Diff Detail

Repository
rL LLVM

Event Timeline

Eugene.Zelenko retitled this revision from to [Clang] Fix some Clang-tidy modernize-use-bool-literals and Include What You Use warnings; other minor fixes.
Eugene.Zelenko updated this object.
Eugene.Zelenko set the repository for this revision to rL LLVM.
Eugene.Zelenko added a subscriber: cfe-commits.
compnerd added inline comments.Sep 10 2016, 1:10 PM
lib/Basic/SourceManager.cpp
395

Cant this be rewritten as:

for (const auto &I : FileInfos)
1039

Hmm, might be nice to change this to Expansion as the other ones are named that.

1075

Similar.

Prazek accepted this revision.Sep 10 2016, 11:10 PM
Prazek added a reviewer: Prazek.
Prazek added a subscriber: Prazek.

Lgtm

This revision is now accepted and ready to land.Sep 10 2016, 11:10 PM
Eugene.Zelenko edited edge metadata.

Implement Saleem suggestions.

Eugene.Zelenko marked 3 inline comments as done.Sep 12 2016, 3:34 PM
shafik added a subscriber: shafik.Sep 21 2023, 8:23 AM

Is this PR still relevant or should it just be closed?

Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2023, 8:23 AM