David Blaikie
e04a3da093
Revert "Apply modernize-use-default to clang-tools-extra."
...
Breaks the build in GCC 4.7.2 (see
http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3 for example)
This reverts commit r250824.
llvm-svn: 250862
2015-10-20 21:45:52 +00:00
Angel Garcia Gomez
3ca34bc870
Apply modernize-use-default to clang-tools-extra.
...
Summary: Replace empty bodies of default constructors and destructors with '= default'.
Reviewers: klimek
Subscribers: alexfh, cfe-commits
Differential Revision: http://reviews.llvm.org/D13889
llvm-svn: 250824
2015-10-20 12:56:27 +00:00
Daniel Jasper
8d90e533ea
Remove empty destructors added in r245500. I got confused by my
...
YouCompleteMe setup which apparently doesn't find the base classes and
thus doesn't understand that there is an implicit virtual destructor.
llvm-svn: 245510
2015-08-19 22:04:55 +00:00
Daniel Jasper
d30dc3fc75
Fix IncludeInserter to allow for more than one added header per file.
...
Also adapt tests a bit to make it possible to test this. Removed
checking the number of errors reported per test. It was never actually
checked and doesn't seem particularly relevant to the test itself.
llvm-svn: 245500
2015-08-19 21:02:27 +00:00
Alexander Kornienko
5f252cac51
[clang-tidy] Move IncludeSorter.* and IncludeInserter.* to clang-tidy/utils/
...
This is better structurally and it also fixes a linker error in the configure
build.
llvm-svn: 245052
2015-08-14 14:31:31 +00:00
Alexander Kornienko
078ab134ea
[clang-tidy] Don't use delegating constructors.
...
llvm-svn: 245046
2015-08-14 13:23:55 +00:00
Alexander Kornienko
8cc024ee37
[clang-tidy] Fix IncludeInserter/IncludeSorter bug.
...
If there weren't any includes in the file, or all of them had 'IncludeKind'
greater than the desired one, then 'CreateIncludeInsertion' didn't work.
http://reviews.llvm.org/D12017
Patch by Angel Garcia!
llvm-svn: 245042
2015-08-14 12:33:25 +00:00
Manuel Klimek
e8c8d887be
1. Disable tests that currently cannot work on windows due to missing path canonicalization in the file manager.
...
2. Add better output when a clang-tidy unit test fails so it's clear what the error is.
llvm-svn: 244602
2015-08-11 14:21:26 +00:00
Manuel Klimek
46e82c3dcd
Do not use inheriting constructors.
...
llvm-svn: 244597
2015-08-11 12:59:22 +00:00
Manuel Klimek
d00d6f1d43
Add an IncludeInserter to clang-tidy.
...
Will be used to allow checks to insert includes at the right position.
llvm-svn: 244586
2015-08-11 11:37:48 +00:00