[PATCH] D76818: [clang-tidy] Add check llvmlibc-implementation-in-namespace.
Paula Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 25 18:26:02 PDT 2020
PaulkaToast created this revision.
PaulkaToast added reviewers: alexfh, aaron.ballman, hokein, njames93.
PaulkaToast added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, MaskRay, xazax.hun, mgorny.
Herald added a project: clang.
This check makes sure all llvm-libc implementations falls within the `__llvm_libc` namespace.
The check is quite general, lots of projects do this by conversion to avoid pollution. Not sure if there is a desire to put this in a different module?
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76818
Files:
clang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt
clang-tools-extra/clang-tidy/llvmlibc/ImplementationInNamespaceCheck.cpp
clang-tools-extra/clang-tidy/llvmlibc/ImplementationInNamespaceCheck.h
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
clang-tools-extra/test/clang-tidy/checkers/llvmlibc-implementation-in-namespace.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76818.252719.patch
Type: text/x-patch
Size: 10244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200326/9fbbc098/attachment.bin>
More information about the cfe-commits
mailing list