summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy
Commit message (Collapse)AuthorAgeFilesLines
...
* Improved the misc-move-constructor-init check to identify arguments that are ↵Aaron Ballman2015-10-061-0/+3
| | | | | | | | passed by value but copy assigned to class data members when the non-deleted move constructor is a better fit. Patch by Felix Berger! llvm-svn: 249429
* Add a new module for the C++ Core Guidelines, and the first checker for ↵Aaron Ballman2015-10-062-0/+10
| | | | | | | | those guidelines: cppcoreguidelines-pro-type-reinterpret-cast. Patch by Matthias Gehre! llvm-svn: 249399
* Adding a checker (cert-dcl50-cpp) that detects the definition of a C-style ↵Aaron Ballman2015-10-052-0/+14
| | | | | | variadic function in C++ code. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/DCL50-CPP.+Do+not+define+a+C-style+variadic+function llvm-svn: 249343
* Update clang-tidy documentation.Angel Garcia Gomez2015-10-013-0/+49
| | | | | | | | | | | | | | Summary: Improve modernize-use-auto documentation (https://llvm.org/bugs/show_bug.cgi?id=24962). Add documentation for modernize-make-unique. Reviewers: klimek Subscribers: cfe-commits, alexfh Differential Revision: http://reviews.llvm.org/D13346 llvm-svn: 249017
* Adding a checker (misc-non-copyable-objects) that detects situations where a ↵Aaron Ballman2015-09-302-0/+10
| | | | | | non-copyable C type is being dereferenced, such as FILE or pthread_mutex_t. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/c/FIO38-C.+Do+not+copy+a+FILE+object llvm-svn: 248907
* Adding a checker (misc-new-delete-overloads) that detects mismatched ↵Aaron Ballman2015-09-292-0/+15
| | | | | | overloads of operator new and operator delete. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/DCL54-CPP.+Overload+allocation+and+deallocation+functions+as+a+pair+in+the+same+scope llvm-svn: 248791
* [clang-tidy] Removed a stray empty line in the docs.Alexander Kornienko2015-09-281-1/+0
| | | | llvm-svn: 248699
* [clang-tidy] Updated misc-unused-raii documentation.Alexander Kornienko2015-09-251-6/+4
| | | | llvm-svn: 248594
* Replace references to "transform" with references to "check" where ↵Angel Garcia Gomez2015-09-215-54/+36
| | | | | | | | | | | | | | neccessary in the documentation. Summary: Replace references to "transform" with references to "check" where neccessary in the documentation. Reviewers: alexfh Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D13006 llvm-svn: 248153
* [clang-tidy] Fixed formatting of headings in the docs.Alexander Kornienko2015-09-214-18/+18
| | | | llvm-svn: 248151
* Update clang-tidy documentation.Angel Garcia Gomez2015-09-185-17/+646
| | | | | | | | | | Summary: Update documentation of the modernize module with clang-modernize's documentation. Subscribers: cfe-commits, klimek, alexfh Differential Revision: http://reviews.llvm.org/D12961 llvm-svn: 247987
* [clang-tidy] Added a style guide link.Alexander Kornienko2015-09-161-0/+3
| | | | llvm-svn: 247798
* [clang-tidy] updated misc-sizeof-container docs.Alexander Kornienko2015-09-141-2/+7
| | | | llvm-svn: 247580
* [clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stlAlexander Kornienko2015-09-102-1/+22
| | | | | | | | | | | | | | | | containers. Summary: sizeof(some_std_string) is likely to be an error. This check finds this pattern and suggests using .size() instead. Reviewers: djasper, klimek, aaron.ballman Subscribers: aaron.ballman, cfe-commits Differential Revision: http://reviews.llvm.org/D12759 llvm-svn: 247297
* [clang-tidy] Add inconsistent declaration parameter name checkAlexander Kornienko2015-09-102-0/+33
| | | | | | | | | | | | | | | | | | | | This is first of series of patches, porting code from my project colobot-lint, as I mentioned recently in cfe-dev mailing list. This patch adds a new check in readability module: readability-inconsistent-declaration-parameter-name. I also added appropriate testcases and documentation. I chose readability module, as it seems it is the best place for it. I think I followed the rules of LLVM coding guideline, but I may have missed something, as I usually use other code formatting style. http://reviews.llvm.org/D12462 Patch by Piotr Dziwinski! llvm-svn: 247261
* [clang-tidy] Updated docs.Alexander Kornienko2015-09-083-1/+36
| | | | llvm-svn: 246996
* [clang-tidy] Updated the check name in the doc.Alexander Kornienko2015-09-021-2/+2
| | | | llvm-svn: 246643
* [clang-tidy] Move misc-use-override and readability-shrink-to-fit to ↵Alexander Kornienko2015-08-314-9/+15
| | | | | | | | | "modernize/" These checks are focusing on migrating the code from C++98/03 to C++11, so they belong to the modernize module. llvm-svn: 246437
* [clang-tidy] Move clang-tidy docs to a separate directory. Create doc files ↵Alexander Kornienko2015-08-2753-0/+1276
for checks The doc files for checks have been generated from the corresponding header files using the docs/clang-tidy/tools/dump_check_docs.py script. Committing the script as well, but the intention is to move all the user-facing docs from header files to the rST files and add links to .h files appropriately. llvm-svn: 246173
OpenPOWER on IntegriCloud