summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Handle missing yaml module in run-clang-tidy.pyZinovy Nis2019-03-271-6/+5
| | | | | | | | | | | | The Yaml module is missing on some systems and on many of clang buildbots. But the test for run-clang-tidy.py doesn't fail due to 'NOT' statement masking a python runtime error. This patch conditionally imports and enables the yaml module only if it's present in the system. If not, then '-export-fixes' is disabled. Differential Revision: https://reviews.llvm.org/D59734 llvm-svn: 357114
* Reland r356547 after fixing the YAML module missing issue.Zinovy Nis2019-03-211-29/+153
| | | | | | | | | | | | | [clang-tidy] Parallelize clang-tidy-diff.py This patch has 2 rationales: - large patches lead to long command lines and often cause max command line length restrictions imposed by OS; - clang-tidy runs on modified files are independent and can be done in parallel, the same as done for run-clang-tidy. Differential Revision: https://reviews.llvm.org/D5766 llvm-svn: 356649
* Revert "Reland r356547 after fixing the tests for Linux."Douglas Yung2019-03-201-144/+26
| | | | | | | | | This reverts commit 538fb72226cf6dff95af83f7777e12b8dbd061ea (r356565). This is still breaking a build bot: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/45557 llvm-svn: 356630
* Reland r356547 after fixing the tests for Linux.Zinovy Nis2019-03-201-26/+144
| | | | | | | | | | | | | [clang-tidy] Parallelize clang-tidy-diff.py This patch has 2 rationales: - large patches lead to long command lines and often cause max command line length restrictions imposed by OS; - clang-tidy runs on modified files are independent and can be done in parallel, the same as done for run-clang-tidy. Differential Revision: https://reviews.llvm.org/D57662 llvm-svn: 356565
* Revert rL356547 : [clang-tidy] Cosmetic fixSimon Pilgrim2019-03-201-146/+25
| | | | | | | | | | | | | | | | | Differential Revision: https://reviews.llvm.org/D57662 ........ [clang-tidy] Parallelize clang-tidy-diff.py This patch has 2 rationales: - large patches lead to long command lines and often cause max command line length restrictions imposed by OS; - clang-tidy runs on modified files are independent and can be done in parallel, the same as done for run-clang-tidy. Differential Revision: https://reviews.llvm.org/D57662 ........ Reverted to fix buildbot: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/45547/steps/test/logs/stdio llvm-svn: 356553
* [clang-tidy] Cosmetic fixZinovy Nis2019-03-201-2/+2
| | | | | | Differential Revision: https://reviews.llvm.org/D57662 llvm-svn: 356548
* [clang-tidy] Parallelize clang-tidy-diff.pyZinovy Nis2019-03-201-25/+146
| | | | | | | | | | | This patch has 2 rationales: - large patches lead to long command lines and often cause max command line length restrictions imposed by OS; - clang-tidy runs on modified files are independent and can be done in parallel, the same as done for run-clang-tidy. Differential Revision: https://reviews.llvm.org/D57662 llvm-svn: 356547
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [clang-tidy] Add export-fixes flag to clang-tidy-diffJulie Hockett2018-12-211-0/+5
| | | | | | Differential Revision: https://reviews.llvm.org/D55848 llvm-svn: 349930
* [clang-tidy] Add -path option to clang-tidy-diff.pyEhsan Akhgari2017-02-171-0/+4
| | | | | | | | | | | | | | | Summary: This flag allows specifying a custom path for the compilation database. Unfortunately we can't use the -p flag like other clang-tidy tools because it's already taken. Reviewers: alexfh Subscribers: JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D29806 llvm-svn: 295482
* [clang-tidy] Add -quiet option to suppress extra outputEhsan Akhgari2017-02-091-0/+4
| | | | | | | | | | | | | | | Summary: This new flag instructs clang-tidy to not output anything except for errors and warnings. This makes it easier to script clang-tidy to run as part of external build systems. Reviewers: bkramer, alexfh, klimek Subscribers: JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D29661 llvm-svn: 294607
* [clang-tidy] Add -extra-arg and -extra-arg-before to clang-tidy-diff.pyEhsan Akhgari2017-02-081-0/+12
| | | | | | | | | | | | | | Summary: These flags allow specifying extra arguments to the tool's command line which don't appear in the compilation database. Reviewers: alexfh, klimek, bkramer Subscribers: JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D29699 llvm-svn: 294491
* [clang-tidy] correct clang-tidy-diff.py help messageAlexander Kornienko2016-06-081-5/+5
| | | | | | | | | | | | | | | | Summary: Looks like the original code was copied from clang-format-diff.py. Update help message to make it clang-tidy specific. Reviewers: klimek, alexfh Subscribers: Eugene.Zelenko, cfe-commits Patch by Igor Sugak! Differential Revision: http://reviews.llvm.org/D21050 llvm-svn: 272144
* [clang-tidy] Python scripts shebang fixesAlexander Kornienko2016-01-191-1/+1
| | | | | | | | | | | | | | | | | | | Summary: This patch fixes shebang lines in Python script files. Most Python scripts in LLVM & Clang are using this shebang line. [[ https://mail.python.org/pipermail/tutor/2007-June/054816.html | Here]] is an explanaiton of why such line should be used instead of what is currently in these few files. Reviewers: klimek, alexfh Subscribers: cfe-commits Patch by Kirill Bobyrev! Differential Revision: http://reviews.llvm.org/D16270 llvm-svn: 258133
* [clang-tidy] Update check name in the comment. NFC.Alexander Kornienko2015-09-151-1/+1
| | | | llvm-svn: 247682
* Add \n to the regex in clang-tidy-diff.py in order to fix ↵Yaron Keren2015-09-011-1/+1
| | | | | | | | http://llvm.org/PR24637, git usecase for multiple files diff. llvm-svn: 246575
* Tweak clang-tidy-diff.py to recognize "filename" in the diff ourput.Yaron Keren2015-08-211-1/+1
| | | | llvm-svn: 245683
* Tweak clang-tidy-diff.py to pass JSON argument correctly to clang-tidy on ↵NAKAMURA Takumi2015-08-201-2/+8
| | | | | | | | | | | win32 arg parser. - Single quotation is not recognized. - Use """ to pass a double quotation. It also reverts r211831. llvm-svn: 245567
* Make clang-tidy-diff.py py3-compatible.NAKAMURA Takumi2014-06-271-1/+1
| | | | llvm-svn: 211834
* Add clang-tidy-diff.py script to run clang-tidy and display warnings on ↵Alexander Kornienko2014-06-251-0/+115
changed lines only. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4288 llvm-svn: 211698
OpenPOWER on IntegriCloud