llvm-project/clang/test
Manman Ren 1c40052646 [ObjCXX] Warn undeclared identifiers.
Instantiation dependence were not being handled correctly for OpqaueValueExpr
AST nodes. As a result, if an undeclared identifier was used in a CXXNewExpr
that is assigned to a ObjC property, there would be no error during parsing, and
there would be a crash during code gen. This patch makes sure that an error
will be issued during parsing in this case.

Before the fix, if CXXNewExpr has a typo, its InstantiationDependent will be
set to true, but if it is wrapped in a OpaqueValueExpr, the OpaqueValueExpr will
not be instantiation dependent, causing the TypoExpr not be to resolved. The fix
propagates InstantiationDependent to OpaqueValueExpr from its SourceExpr. It
also propagates the other instantiation bits.

rdar://24975562

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

llvm-svn: 264444
2016-03-25 18:43:46 +00:00
..
ARCMT Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
ASTMerge [ASTImporter] Implement missing VisitAccessSpecDecl function in ASTImporter class. 2016-02-18 23:08:36 +00:00
Analysis [analyzer] Fix missed leak from MSVC specific allocation functions 2016-03-08 01:21:51 +00:00
CXX Make SemaAccess smarter about determining when a dependent class might 2016-03-23 20:39:06 +00:00
CodeCompletion Fix ObjCMethodDecl::findPropertyDecl for class properties. 2016-03-11 21:14:40 +00:00
CodeGen The time when -faltivec (or, on clang only, -maltivec) will magically 2016-03-24 01:26:08 +00:00
CodeGenCUDA [CUDA] Merge most of CodeGenCUDA/function-overload.cu into SemaCUDA/function-overload.cu. 2016-03-23 22:42:30 +00:00
CodeGenCXX Debug Info: Add a testcase for the bug introduced by r259975. 2016-03-25 00:20:35 +00:00
CodeGenObjC Revert "Convert some ObjC msgSends to runtime calls." 2016-03-21 20:50:03 +00:00
CodeGenObjCXX Mangle extended qualifiers in the proper order and mangle the 2016-03-01 22:18:03 +00:00
CodeGenOpenCL [OpenCL] Add ocl and spir version for spir target 2016-03-24 03:57:17 +00:00
Coverage Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
CoverageMapping [Coverage] Fix the start/end locations of switch statements 2016-03-04 08:07:15 +00:00
Driver Modules builds are necessarily compile actions, but they don't 2016-03-24 00:34:02 +00:00
FixIt [Lit Test] Updated 26 Lit tests to be C++11 compatible. 2015-11-11 19:34:47 +00:00
Format Fix clang-format test. I believe that the new behavior is better. 2015-11-23 08:50:52 +00:00
Frontend clang-cl: Include /FI headers in /showIncludes output. 2016-03-23 18:00:22 +00:00
Headers D18325: Added mm_malloc module export. 2016-03-22 20:57:51 +00:00
Index [index] Remove redundancy between symbol kind and language 2016-03-25 17:01:59 +00:00
Integration
Layout [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions, by Denis Zobnin. 2015-11-20 07:02:57 +00:00
Lexer Update cxx-features test to C++1z 2016-03-22 21:12:48 +00:00
Misc Fix typo in test from r264210, sigh. 2016-03-23 23:01:38 +00:00
Modules [modules] Don't invent a module cache path unless implicit module builds are enabled. 2016-03-21 19:06:06 +00:00
OpenMP [OpenMP] Base support for target directive codegen on NVPTX device. 2016-03-22 01:48:56 +00:00
PCH P0188R1: add support for standard [[fallthrough]] attribute. This is almost 2016-03-08 00:32:55 +00:00
Parser The time when -faltivec (or, on clang only, -maltivec) will magically 2016-03-24 01:26:08 +00:00
Preprocessor Combine identical check-prefixes in Clang test/Preprocessor/arm-target-features.c 2016-03-23 13:32:33 +00:00
Profile Attach profile summary information to Module. 2016-03-24 21:32:25 +00:00
Rewriter Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
Sema [Sema] Allow implicit conversions of &overloaded_fn in C. 2016-03-23 02:33:58 +00:00
SemaCUDA [CUDA] Merge most of CodeGenCUDA/function-overload.cu into SemaCUDA/function-overload.cu. 2016-03-23 22:42:30 +00:00
SemaCXX Fix nondeterminism in computation of builtin operator overload sets. 2016-03-25 00:08:53 +00:00
SemaObjC ObjC: add getter/setter for class properties to global pool. 2016-03-23 21:39:31 +00:00
SemaObjCXX [ObjCXX] Warn undeclared identifiers. 2016-03-25 18:43:46 +00:00
SemaOpenCL [OpenCL] Refine pipe builtin support 2016-03-04 07:11:16 +00:00
SemaTemplate Add missing triple to instantiate-sizeof.cpp test 2016-03-11 19:17:53 +00:00
TableGen
Tooling int function without a return statement is invalid C++. 2015-11-27 18:10:49 +00:00
Unit
VFS [VFS] Fix status() of opened redirected file 2015-12-10 23:41:39 +00:00
.clang-format
CMakeLists.txt clang/test/Frontend/plugin-annotate-functions.c requires the target examples/AnnotateFunctions. 2016-03-21 11:03:39 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Revert r260266 (and r260276), "clang-cl: Enable plugins on Windows" 2016-02-11 16:43:08 +00:00
lit.site.cfg.in [modules] Compress files embedded into a .pcm file, to reduce the disk usage of -fembed-all-files mode. 2016-02-06 02:06:43 +00:00
make_test_dirs.pl