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 in AST; other minor fixes
Needs ReviewPublic

Authored by Eugene.Zelenko on Sep 12 2016, 6:54 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 in AST; 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.
Prazek added inline comments.Dec 15 2016, 9:01 AM
lib/ASTMatchers/Dynamic/Parser.cpp
617

I think check should not warn in these cases.

lib/ASTMatchers/Dynamic/Parser.cpp
617

I think it's reasonable to unify such comments. Three different styles are too much for one project :-)

Prazek edited edge metadata.Dec 15 2016, 10:51 AM

I would say that as long as most of the people don't see big difference between "end namespace X" and "namespace X" or even "X" then we should not be so strict. For me "end" is redundant.
Even checks added by add_new_check uses "namespace clang" instead of "end namespace clang"