[clang-tidy] Add check llvmlibc-implementation-in-namespace.
authorPaula Toth <paulatoth@google.com>
Mon, 6 Apr 2020 17:40:50 +0000 (10:40 -0700)
committerPaula Toth <paulatoth@google.com>
Mon, 6 Apr 2020 17:49:49 +0000 (10:49 -0700)
commit00a57558978d3e4f11d08bed486497a8674000e3
tree3022fb98252b47429bb6da38b885c3a175fa4316
parent3f995ce8b54ca6094fd47a5f1090ef6ce367ded2
[clang-tidy] Add check llvmlibc-implementation-in-namespace.

Summary:
This check makes sure all llvm-libc implementations falls within the `__llvm_libc` namespace.

Reviewers: alexfh, aaron.ballman, hokein, njames93

Reviewed By: aaron.ballman

Subscribers: Eugene.Zelenko, libc-commits, mgorny, xazax.hun, MaskRay, cfe-commits, sivachandra

Tags: #clang-tools-extra, #clang

Differential Revision: https://reviews.llvm.org/D76818
clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt
clang-tools-extra/clang-tidy/llvmlibc/ImplementationInNamespaceCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/llvmlibc/ImplementationInNamespaceCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/llvmlibc/LLVMLibcTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/llvmlibc-implementation-in-namespace.rst [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/checkers/llvmlibc-implementation-in-namespace.cpp [new file with mode: 0644]