llvm-project/clang/test
Alex Denisov e1d882c726 New ObjC warning: circular containers.
This commit adds new warning to prevent user from creating 'circular containers'.

Mutable collections from NSFoundation allows user to add collection to itself, e.g.: 

NSMutableArray *a = [NSMutableArray new]; 
[a addObject:a]; 

The code above leads to really weird behaviour (crashes, 'endless' recursion) and 
retain cycles (collection retains itself) if ARC enabled.

Patch checks the following collections: 
  - NSMutableArray, 
  - NSMutableDictionary, 
  - NSMutableSet, 
  - NSMutableOrderedSet, 
  - NSCountedSet. 

llvm-svn: 231265
2015-03-04 17:55:52 +00:00
..
ARCMT Revert r231008 (and dependent r231019). 2015-03-03 10:02:53 +00:00
ASTMerge
Analysis Remove shell requirements from tests that use 'cd' 2015-03-02 22:42:58 +00:00
CXX Update Clang tests to handle explicitly typed load changes in LLVM. 2015-02-27 21:19:58 +00:00
CodeCompletion
CodeGen Prevent test from writing files. 2015-03-04 15:02:17 +00:00
CodeGenCUDA Update Clang tests to handle explicitly typed load changes in LLVM. 2015-02-27 21:19:58 +00:00
CodeGenCXX [UBSan] Split -fsanitize=shift into -fsanitize=shift-base and -fsanitize=shift-exponent. 2015-03-03 22:15:35 +00:00
CodeGenObjC DebugInfo: Move new hierarchy into place (clang) 2015-03-03 17:25:55 +00:00
CodeGenObjCXX DebugInfo: Move new hierarchy into place (clang) 2015-03-03 17:25:55 +00:00
CodeGenOpenCL Restores r228382, which was reverted in r228406. 2015-02-25 05:48:23 +00:00
Coverage clang/test/Coverage/html-diagnostics.c: Use find(1) to avoid globbing. 2014-11-04 13:05:10 +00:00
CoverageMapping InstrProf: Make sure counts in lambdas don't escape to the parent scope 2015-02-24 04:13:56 +00:00
Driver Revert "[IAS] Teach -cc1as about the 'target-abi' option." 2015-03-04 15:02:22 +00:00
FixIt Use the real CXXScopeSpec when setting the correction SourceRange. 2015-01-28 00:46:09 +00:00
Format Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
Frontend Fix typo in my last commit. 2015-03-03 00:12:08 +00:00
Headers Restore the libc++ definition of max_align_t on Apple platforms 2015-02-24 01:06:22 +00:00
Index [ASTUnit] Fix crash when trying to load a module file via ASTUnit::LoadFromASTFile. 2015-03-03 08:04:19 +00:00
Integration
Layout PR6037 2015-01-19 01:44:02 +00:00
Lexer Add -fuse-line-directive flag to control usage of #line with -E 2015-02-26 00:17:25 +00:00
Misc Fix test case. 2015-03-02 21:47:47 +00:00
Modules [Modules] Fix crash in Preprocessor::getLastMacroWithSpelling(). 2015-03-04 16:03:07 +00:00
OpenMP Update Clang tests to handle explicitly typed load changes in LLVM. 2015-02-27 21:19:58 +00:00
PCH Try to unbreak the Windows buildbots. 2015-03-03 23:36:57 +00:00
Parser [PowerPC]Activate "vector bool long long" (and alternate spellings) as a valid type for Altivec support for Power. 2015-03-03 20:08:43 +00:00
Preprocessor Add __ARM_DWARF_EH__ to signify the use of Itanium ABI for unwind instructions. 2015-02-27 16:35:48 +00:00
Profile Add -frtti/-fexceptions to some more tests that assume they're on 2015-02-26 18:29:41 +00:00
Rewriter Update Clang tests to handle explicitly typed gep changes in LLVM. 2015-02-27 19:18:17 +00:00
Sema Support __attribute__((availability)) on Android. 2015-03-03 18:28:38 +00:00
SemaCUDA CUDA: Add option to allow host device functions to call host functions 2015-02-24 21:45:33 +00:00
SemaCXX Move one more diagnostic into the new -Wformat-pedantic group. 2015-03-04 14:18:20 +00:00
SemaObjC New ObjC warning: circular containers. 2015-03-04 17:55:52 +00:00
SemaObjCXX Update error message text. 2015-01-18 19:05:48 +00:00
SemaOpenCL Restores r228382, which was reverted in r228406. 2015-02-25 05:48:23 +00:00
SemaTemplate Revert "Improve declaration / expression disambiguation around ptr-operators, and use" 2015-02-23 22:36:28 +00:00
TableGen
Tooling Remove "REQUIRES:shell" from tests. They work for me. 2014-11-04 13:41:33 +00:00
Unit Let test/Unit/lit.cfg add config.shlibdir to $PATH on DLL platforms like cygming. 2014-07-04 05:11:55 +00:00
VFS DebugInfo: Move new hierarchy into place (clang) 2015-03-03 17:25:55 +00:00
.clang-format
CMakeLists.txt Revert "Wrap clang module files in a Mach-O, ELF, or COFF container." 2015-02-25 02:44:04 +00:00
Makefile Fix makefile for debuginfo-tests execution. 2014-10-17 23:50:47 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Check for backtraces in tests which are verifying pretty stack traces from a crashing clang. 2015-02-10 19:53:38 +00:00
lit.site.cfg.in Check for backtraces in tests which are verifying pretty stack traces from a crashing clang. 2015-02-10 19:53:38 +00:00
make_test_dirs.pl