llvm-project/clang/test
Artem Dergachev 7a0088bbae [analyzer] Make CloneDetector recognize different variable patterns.
CloneDetector should be able to detect clones with renamed variables.
However, if variables are referenced multiple times around the code sample,
the usage patterns need to be recognized.

For example, (x < y ? y : x) and (y < x ? y : x) are no longer clones,
however (a < b ? b : a) is still a clone of the former.

Variable patterns are computed and compared during a separate filtering pass.

Patch by Raphael Isemann!

Differential Revision: https://reviews.llvm.org/D22982

llvm-svn: 277757
2016-08-04 19:37:00 +00:00
..
ARCMT [test/objcmt] Add a follow-up test case for r275600. 2016-07-15 20:40:24 +00:00
ASTMerge When importing classes and structs with anonymous structs, it is critical that 2016-07-14 19:53:44 +00:00
Analysis [analyzer] Make CloneDetector recognize different variable patterns. 2016-08-04 19:37:00 +00:00
CXX Push alias-declarations and alias-template declarations into scope even if 2016-07-15 20:53:25 +00:00
CodeCompletion Implement filtering for code completion of identifiers. 2016-07-27 14:56:59 +00:00
CodeGen After PR28761 use -Wall with -Werror in builtins tests to identify 2016-08-04 06:02:50 +00:00
CodeGenCUDA [CUDA] Align kernel launch args correctly when the LLVM type's alignment is different from the clang type's alignment. 2016-07-27 22:36:21 +00:00
CodeGenCXX [codeview] Skip injected class names in nested record emission 2016-08-01 18:56:13 +00:00
CodeGenObjC CodeGen: try harder to make the CFString structure RW 2016-07-29 19:15:51 +00:00
CodeGenObjCXX CodeGen: try harder to make the CFString structure RW 2016-07-29 19:15:51 +00:00
CodeGenOpenCL [OpenCL] Add the lit test for image size which was omitted by r277647. 2016-08-04 19:35:17 +00:00
Coverage
CoverageMapping [Coverage] Do not write out coverage mappings with zero entries 2016-07-26 00:24:59 +00:00
Driver [CUDA] Updated CUDA tests that must run w/o CUDA installation. 2016-08-02 23:43:04 +00:00
FixIt ObjC Class Property: diagnostics when accessing a class property using instance. 2016-06-28 23:01:49 +00:00
Format
Frontend test/Frontend: Add a test for aarch64 target CPU names. 2016-07-27 22:47:07 +00:00
Headers Attempting to fix lit test test/Headers/opencl-c-header.cl on cygwin. 2016-06-27 21:43:00 +00:00
Index [index] Fix crash with indexing designated init expressions inside templates. 2016-08-03 05:38:53 +00:00
Integration
Layout [MS ABI] Implement __declspec(empty_bases) and __declspec(layout_version) 2016-05-23 17:16:12 +00:00
Lexer Add -fmodules-ts flag to cc1 for the provisional C++ modules TS, and mark 2016-07-23 02:32:21 +00:00
Misc [OpenCL] Add extension cl_khr_mipmap_image to clang 2016-07-29 17:52:34 +00:00
Modules [clang/test] Fix a flaky unittest on windows 2016-08-03 06:10:15 +00:00
OpenMP Change a test to be less prone to random failures due to 2016-07-29 00:54:13 +00:00
PCH Support '#pragma once' in headers when using PCH 2016-07-25 17:17:06 +00:00
Parser Update Clang Parser test error message to match new parser errors 2016-08-02 17:58:14 +00:00
Preprocessor [CUDA] Updated CUDA tests that must run w/o CUDA installation. 2016-08-02 23:43:04 +00:00
Profile [Profile] Enable profile merging with -fprofile-generat[=<dir>] 2016-07-22 22:25:01 +00:00
Rewriter
Sema [Parser] Fix bug where delayed typo in conditional expression was corrected twice 2016-07-29 00:55:40 +00:00
SemaCUDA [CUDA] Add additional testcases for EraseUnwantedCUDAMatches. 2016-07-12 23:23:12 +00:00
SemaCXX [CFG] Fix crash finding destructor of lifetime-extended temporary. 2016-08-02 21:07:23 +00:00
SemaObjC [ObjC Availability] Fix partial-availability false positive introduced in r277058 2016-08-01 20:19:49 +00:00
SemaObjCXX Sema: support __declspec(dll*) on ObjC interfaces 2016-07-15 20:41:10 +00:00
SemaOpenCL [OpenCL] Add extension cl_khr_mipmap_image to clang 2016-07-29 17:52:34 +00:00
SemaTemplate Push alias-declarations and alias-template declarations into scope even if 2016-07-15 20:53:25 +00:00
TableGen
Tooling Back out the test case for r266973 for now. 2016-04-21 10:46:14 +00:00
Unit Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 06:54:46 +00:00
VFS
.clang-format
CMakeLists.txt Re-apply "test: Use add_lit_testsuites so that subsets of tests can be specified" 2016-07-05 17:54:40 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Port some more debug info tests on Windows 2016-06-30 17:41:27 +00:00
lit.site.cfg.in Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 06:54:46 +00:00
make_test_dirs.pl