llvm-project/clang-tools-extra/test
Angel Garcia Gomez 432ff5e205 Handle correctly containers that are data members in modernize-loop-convert.
Summary:
I recently found that the variable naming wasn't working as expected with containers that are data members. The new index always received the name "Elem" (or equivalent) regardless of the container's name.
The check was assuming that the container's declaration was a VarDecl, which cannot be converted to a FieldDecl (a data member), and then it could never retrieve its name.

This also fixes some cases where the check failed to find the container at all (so it didn't do any fix) because of the same reason.

Reviewers: klimek

Subscribers: cfe-commits, alexfh

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

llvm-svn: 251943
2015-11-03 16:38:31 +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 Handle correctly containers that are data members in modernize-loop-convert. 2015-11-03 16:38:31 +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 Add %check_clang_tidy and %clang_tidy_diff. 2015-10-22 11:31:44 +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