summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/blocks-1.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Switch the semantic DeclContext for a block-scope declaration of a function orRichard Smith2013-09-201-2/+16
| | | | | | | | | | | | | | variable from being the function to being the enclosing namespace scope (in C++) or the TU (in C). This allows us to fix a selection of related issues where we would build incorrect redeclaration chains for such declarations, and fail to notice type mismatches. Such declarations are put into a new IdentifierNamespace, IDNS_LocalExtern, which is only found when searching scopes, and not found when searching DeclContexts. Such a declaration is only made visible in its DeclContext if there are no non-LocalExtern declarations. llvm-svn: 191064
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-191-0/+1
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Test case for rdar://problem/11055105, a bug with the instantiationJohn McCall2012-03-211-1/+14
| | | | | | | | of references to function template parameters in noexcept clauses when the instantiation is forced from a point during parsing when a block is in scope. llvm-svn: 153152
* Allow C-style casts and reinterpret_casts between block pointers andDouglas Gregor2010-07-081-0/+10
| | | | | | either integer values or other pointers. Fixes <rdar://problem/8134521>. llvm-svn: 107905
* Fixed a crash specific to blocks in c++ uncovered by an internalFariborz Jahanian2010-02-181-0/+35
test suite. llvm-svn: 96608
OpenPOWER on IntegriCloud