llvm-project/clang-tools-extra/test
Haojian Wu e641cb4807 [clang-tidy] Fix "Name is not a simple identifier" assertion in `modernize-loop-convert` check.
Summary:
Fix assertion failure: "Name is not a simple identifier".

`Decl::GetName` assumes the name should be an identifier. When the check
processes the function calling statement with speciail key name like
'it.operator->()', it will trigger the assert in `GetName`.

Rather than using `Decl::GetName`, we use `getNameAsString` which works
with special key names in C++.

Reviewers: bkramer

Subscribers: cfe-commits

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

llvm-svn: 263426
2016-03-14 12:41:24 +00:00
..
Unit clang-tools-extra/test/Unit/lit.site.cfg.in: Prune on_clone. I guess it has been unused since r188006. 2016-02-16 08:13:36 +00:00
clang-apply-replacements Handle newlines on Windows correctly. 2014-12-09 02:57:56 +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] Fix "Name is not a simple identifier" assertion in `modernize-loop-convert` check. 2016-03-14 12:41:24 +00:00
modularize Added coverage check for extensionless headers, and exclude hidden dot directoryies. 2015-12-04 22:42:18 +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 [clang-tidy] Add "clang-tidy as a clang plugin" skeleton. 2016-03-03 08:58:12 +00:00
lit.cfg Revert r261814, "check-clang-tools: Introduce the feature target-headers", corresponding to r261893. 2016-02-25 16:59:59 +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