llvm-project/clang/lib
Richard Smith 4ccb6c36a9 Fix violations of [basic.class.scope]p2.
These cases all follow the same pattern:

struct A {
  friend class X;
  //...
  class X {};
};

But 'friend class X;' injects 'X' into the surrounding namespace scope,
rather than introducing a class member. So the second 'class X {}' is a
completely different type, which changes the meaning of the earlier name
'X' from '::X' to 'A::X'.

Additionally, the friend declaration is pointless -- members of a class
don't need to be befriended to be able to access private members.
2020-06-01 22:03:05 -07:00
..
ARCMigrate [NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec. 2020-04-23 17:21:25 -04:00
AST [Matrix] Implement matrix index expressions ([][]). 2020-06-01 20:08:49 +01:00
ASTMatchers [ASTMatchers] Matchers related to C++ inheritance 2020-05-29 12:38:01 -07:00
Analysis Fix violations of [basic.class.scope]p2. 2020-06-01 22:03:05 -07:00
Basic [PowerPC] Add clang option -m[no-]pcrel 2020-06-01 15:34:59 -05:00
CodeGen Fix how cc1 command line options are mapped into FP options. 2020-06-01 22:00:30 -04:00
CrossTU Revert "[analyzer] On-demand parsing capability for CTU" 2020-04-27 14:27:04 +02:00
DirectoryWatcher [DirectoryWatcher] Do not use FSEvents on non-macOS platforms 2020-04-23 10:22:28 -07:00
Driver [Driver] Simplify Linux::addProfileRTLibs 2020-05-31 17:15:14 -07:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format [clang-format] [PR46130] When editing a file with unbalance {} the namespace comment fixer can incorrectly comment the wrong closing brace 2020-05-30 13:15:27 +01:00
Frontend Fix how cc1 command line options are mapped into FP options. 2020-06-01 22:00:30 -04:00
FrontendTool [llvm][clang][IFS] Enhancing the llvm-ifs yaml format for symbol lists. 2020-04-01 10:49:06 -04:00
Headers [X86] Update some av512 shift intrinsics to use "unsigned int" parameter instead of int to match Intel documentation 2020-05-22 20:12:57 -07:00
Index [clangd] Don't traverse the AST within uninteresting files during indexing 2020-05-26 10:27:28 +02:00
Lex [Lexer] Fix invalid suffix diagnostic for fixed-point literals 2020-05-27 16:16:56 -07:00
Parse [OPENMP50]Initial support for use_device_addr clause. 2020-05-27 11:35:31 -04:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema [Matrix] Implement matrix index expressions ([][]). 2020-06-01 20:08:49 +01:00
Serialization [Matrix] Implement matrix index expressions ([][]). 2020-06-01 20:08:49 +01:00
StaticAnalyzer [analyzer][MallocChecker] Fix the incorrect retrieval of the from argument in realloc() 2020-06-01 22:38:29 +02:00
Testing Move unittest helpers to a shared location 2020-05-29 16:47:33 +02:00
Tooling Add support for Overloaded Binary Operators in SyntaxTree 2020-05-29 20:03:59 +02:00
CMakeLists.txt Move unittest helpers to a shared location 2020-05-29 16:47:33 +02:00