Add CppCoreGuidelines I.2 "Avoid non-const global variables" check
authorKim Viggedal <kimviggedal@gmail.com>
Fri, 13 Mar 2020 14:05:13 +0000 (10:05 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 13 Mar 2020 14:05:13 +0000 (10:05 -0400)
commit512767eb3fe9c34c655a480d034147c54f1d4f85
treec10391ce8355eda7ed81d087be1013ee1c067e30
parentfcc2238b8bfb9498b46a48d219193de8c00a25a0
Add CppCoreGuidelines I.2 "Avoid non-const global variables" check

Cpp Core Guideline I.2, a.k.a "Avoid non-const global variables"
For detailed documentation, see:
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#i2-avoid-non-const-global-variables
clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidNonConstGlobalVariablesCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidNonConstGlobalVariablesCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt
clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-avoid-non-const-global-variables.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-avoid-non-const-global-variables.cpp [new file with mode: 0644]