llvm-project/clang-tools-extra/test
Alexander Kornienko 3d77768e2a [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck
This is to level the ground a little bit, in preparation for the changes in http://reviews.llvm.org/D13081.

Code factorization replaces all insertions to NamingCheckFailures map with a unique addUsage function that does the job.
There is also no more difference between the declaration and the references to a given identifier, both cases are treated as ranges in the Usage vector. There is also a check to avoid duplicated ranges to be inserted, which sometimes triggered erroneous replacements.

References can now also be added before the declaration of the identifier is actually found; this looks to be the case for example when a templated class uses its parameters to specialize its templated base class.

Patch by Beren Minor!

Differential revision: http://reviews.llvm.org/D13079

llvm-svn: 248700
2015-09-28 08:59:12 +00:00
..
Unit Also run extra tools unit tests in shared library builds. 2014-08-13 12:54:50 +00:00
clang-apply-replacements Handle newlines on Windows correctly. 2014-12-09 02:57:56 +00:00
clang-modernize Copy lit shell changes from clang to clang-tools-extra, excluding some failing tests 2015-05-20 20:33:18 +00:00
clang-query Add a makefile for clang-query. Patch by Alex Horn! 2014-02-18 19:46:01 +00:00
clang-rename Make test EOL tolerant by moving the symbol ot the first line 2015-08-21 10:46:46 +00:00
clang-tidy [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck 2015-09-28 08:59:12 +00:00
modularize Added mechanism to modularize for doing a compilation precheck 2015-07-10 00:37:25 +00:00
pp-trace Update to match clang r236404. 2015-05-04 03:15:55 +00:00
.clang-format Add a .clang-format to avoid reflow of test RUN lines 2013-12-01 05:08:00 +00:00
CMakeLists.txt Move remove-cstr-calls from a standalone executable to a clang-tidy check readability-redundant-string-cstr 2015-03-16 00:32:25 +00:00
Makefile Try to unbreak the Makefile build. 2014-08-13 13:20:04 +00:00
lit.cfg clang-tools-extra/test/lit.cfg: Prune an obsolete feature, python27. Now we requires python>=2.7. 2015-08-20 15:04:32 +00:00
lit.site.cfg.in Make the clang-tidy-diff.py test conditional on the presence of Python 2.7. Use the python binary from the configuration. 2014-06-26 16:32:26 +00:00