[clang-tidy] introduce modernize-deprecated-headers check
authorAlexander Kornienko <alexfh@google.com>
Wed, 24 Feb 2016 13:36:34 +0000 (13:36 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 24 Feb 2016 13:36:34 +0000 (13:36 +0000)
commite4a75fd8965c38d4b96bd202a4de74d7132639bd
tree7d159868f460549511b90780e1ae06f9238fa0aa
parentea9fd99215088b136c224d40074f2faa735a073b
[clang-tidy] introduce modernize-deprecated-headers check

Summary:
This patch introduces the modernize-deprecated-headers check, which is supposed to replace deprecated C library headers with the C++ STL-ones.

For information see documentation; for exmaples see the test cases.

Reviewers: Eugene.Zelenko, LegalizeAdulthood, alexfh

Subscribers: cfe-commits

Patch by Kirill Bobyrev!

Differential Revision: http://reviews.llvm.org/D17484

llvm-svn: 261738
clang-tools-extra/clang-tidy/modernize/CMakeLists.txt
clang-tools-extra/clang-tidy/modernize/DeprecatedHeadersCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/modernize/DeprecatedHeadersCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-headers.rst [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx03.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx11.cpp [new file with mode: 0644]