summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-friend.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Lit C++11 Compatibility Patch #8Charles Li2016-04-141-3/+16
| | | | | | 24 tests have been updated for C++11 compatibility. llvm-svn: 266387
* Sema: Implement DR317David Majnemer2014-03-301-1/+1
| | | | | | | | | | | | | | | Summary: Declaring a function as inline after it has been defined is in violation of [dcl.fct.spec]p4. The program would get a strong definition instead of getting a function with linkonce_odr linkage. Reviewers: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3220 llvm-svn: 205129
* Check "late parsed" friend functions for redefinitionAlp Toker2013-10-181-0/+4
| | | | | | | | | | | | | | | r177003 applied the late parsed template technique to friend functions but omitted the corresponding check for redefinitions. This patch adds the same check already in use for templates to the new code path in order to diagnose and reject invalid redefinitions that were being silently accepted. Fixes PR17324. Reviewed by Richard Smith. llvm-svn: 192948
* Tweak the diagnostics for the C++0x extensions to friend types to noteDouglas Gregor2011-05-101-3/+3
| | | | | | | | that they are C++0x extensions, and put them in the appropriate group. We already support most of the semantics. Addresses <rdar://problem/9407525>. llvm-svn: 131153
* Improve handling of friend types in several ways:Douglas Gregor2010-04-071-3/+3
| | | | | | | | | | | - When instantiating a friend type template, perform semantic analysis on the resulting type. - Downgrade the errors concerning friend type declarations that do not refer to classes to ExtWarns in C++98/03. C++0x allows practically any type to be befriended, and ignores the friend declaration if the type is not a class. llvm-svn: 100635
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* fix a crash on invalid I found when working on something unrelated.Chris Lattner2009-12-071-0/+8
| | | | llvm-svn: 90729
* Rework the Parse-Sema interaction for friends to better support friendDouglas Gregor2009-09-261-2/+2
| | | | | | | | | class templates. We now treat friend class templates much more like normal class templates, except that they still get special name lookup rules. Fixes PR5057 and eliminates a bunch of spurious diagnostics in <iostream>. llvm-svn: 82848
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-1/+1
| | | | llvm-svn: 81346
* First pass at friend semantics.John McCall2009-08-061-2/+17
| | | | llvm-svn: 78274
* For friend class decls, always use TK_Reference so we'll try to look up ↵Anders Carlsson2009-05-111-0/+12
| | | | | | existing class decls first. llvm-svn: 71481
* Add parsing of friend specifiers.Anders Carlsson2009-05-061-0/+5
llvm-svn: 71067
OpenPOWER on IntegriCloud