This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by LegalizeAdulthood on Mar 2 2015, 1:02 AM.

Details

Reviewers
alexfh
Summary

clang-tidy checks are organized into modules. This refactoring moves the llvm module checks to clang::tidy::llvm

Diff Detail

Event Timeline

LegalizeAdulthood retitled this revision from to Refactor: Move llvm clang-tidy checks to namespace clang::tidy::llvm.
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 accepted this revision.Mar 2 2015, 4:39 AM
alexfh edited edge metadata.

Looks good! Thanks!

I'll commit the patch for you.

clang-tidy/llvm/IncludeOrderCheck.cpp
50

Wow, just one case of compiler being confused with another namespace llvm ;)

clang-tidy/llvm/LLVMTidyModule.cpp
36

I'd put it inside namespace llvm to avoid the need to qualify LLVMModule.

This revision is now accepted and ready to land.Mar 2 2015, 4:39 AM
alexfh added a comment.Mar 2 2015, 4:42 AM

Committed revision 230952.

Modified before commit: fixed issues pointed out in the comments.

clang-tidy/llvm/IncludeOrderCheck.cpp
50

BTW, this needs to be clang-formatted.

alexfh closed this revision.Mar 2 2015, 4:42 AM
clang-tidy/llvm/IncludeOrderCheck.cpp
50

Yes, I noticed a bunch of files in clang-tidy are deviating from clang-format style=LLVM. I planned to submit a separate changeset that will just clang-format everything.

clang-tidy/llvm/LLVMTidyModule.cpp
36

I was following the existing example of the readability module where they had it arranged this way. I was getting an error when the static was inside the namespace. I'll try it out and see if I can resolve the error.

alexfh added inline comments.Mar 2 2015, 10:21 AM
clang-tidy/llvm/IncludeOrderCheck.cpp
50

The fragment formatting was off because of this patch, I've fixed this already.

clang-tidy/llvm/LLVMTidyModule.cpp
36

I've fixed and committed this already. Seems to work fine.