This is an archive of the discontinued LLVM Phabricator instance.

Refactor: Move google clang-tidy checks to namespace clang::tidy::google
ClosedPublic

Authored by LegalizeAdulthood on Mar 2 2015, 12:47 AM.

Details

Reviewers
alexfh
Summary

clang-tidy checks are organized into modules. This refactoring moves the google module checks into the namespace clang::tidy::google

Diff Detail

Event Timeline

LegalizeAdulthood retitled this revision from to Refactor: Move google clang-tidy checks to namespace clang::tidy::google.
LegalizeAdulthood updated this object.
LegalizeAdulthood edited the test plan for this revision. (Show Details)
LegalizeAdulthood added a reviewer: alexfh.
LegalizeAdulthood added a subscriber: Unknown Object (MLST).
alexfh added inline comments.Mar 2 2015, 3:08 AM
clang-tidy/google/AvoidCStyleCastsCheck.cpp
21

Please don't remove the "readability" namespace. You can put the "google" namespace around it. Same for other checks.

clang-tidy/google/AvoidCStyleCastsCheck.cpp
21

So you'd prefer clang::tidy::google::readability? I can do that.

Observation: This review shows why it's a good idea to split large changes into multiple patches :-). The other parts were acceptable and only this one needed some tweaking.

alexfh added inline comments.Mar 3 2015, 7:31 AM
clang-tidy/google/AvoidCStyleCastsCheck.cpp
21

Yes, exactly. And the same for runtime and build namespaces.

clang-tidy/google/AvoidCStyleCastsCheck.cpp
21

Fixed.

Preserve child namespaces of clang::tidy::google

clang-tidy/google/GlobalNamesInHeadersCheck.cpp
21

I will fix this.

clang-tidy/google/GlobalNamesInHeadersCheck.h
18

Looks like I missed one. On it.

clang-tidy/google/GoogleTidyModule.cpp
90–93

This will be moved into namespace google

Fix some issues I noticed after viewing diffs in phabricator

I think this fixes the last outstanding item.

alexfh accepted this revision.Mar 5 2015, 4:05 AM
alexfh edited edge metadata.

Looks good!

I'll commit the patch.

This revision is now accepted and ready to land.Mar 5 2015, 4:05 AM
alexfh closed this revision.Mar 5 2015, 5:49 AM

Committed revision 231364.

Thanks for the patch!