diff options
| author | Alexander Kornienko <alexfh@google.com> | 2016-04-08 09:51:06 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2016-04-08 09:51:06 +0000 |
| commit | 477e5d8d3160367e03edc1343900e87267b22fac (patch) | |
| tree | f5e5a05f82971dca8c0310439c0ffe5470c706fa /clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt | |
| parent | ad659c3400d03fe1797c5b00eb825d4b6b745686 (diff) | |
| download | bcm5719-llvm-477e5d8d3160367e03edc1343900e87267b22fac.tar.gz bcm5719-llvm-477e5d8d3160367e03edc1343900e87267b22fac.zip | |
[clang-tidy] cppcoreguidelines-interfaces-global-init
Summary:
This check flags initializers of globals that access extern objects, and therefore can lead to order-of-initialization problems (this recommandation is part of CPP core guidelines).
Note that this only checks half of the guideline for now (it does not enforce using constexpr functions).
Reviewers: aaron.ballman, alexfh
Subscribers: aaron.ballman, etienneb, Eugene.Zelenko, cfe-commits
Patch by Clement Courbet!
Differential Revision: http://reviews.llvm.org/D18649
llvm-svn: 265774
Diffstat (limited to 'clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt')
| -rw-r--r-- | clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt b/clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt index ea97ebe2dee..65c40ed5861 100644 --- a/clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt +++ b/clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt @@ -2,6 +2,7 @@ set(LLVM_LINK_COMPONENTS support) add_clang_library(clangTidyCppCoreGuidelinesModule CppCoreGuidelinesTidyModule.cpp + InterfacesGlobalInitCheck.cpp ProBoundsArrayToPointerDecayCheck.cpp ProBoundsConstantArrayIndexCheck.cpp ProBoundsPointerArithmeticCheck.cpp |

