llvm-project/clang
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
..
INPUTS
bindings Revert "Temporarily revert "build: use `find_package(Python3)` if available"" 2020-04-29 01:38:08 +00:00
cmake Re-commit "[cmake] Allow std::filesystem tests in CrossWinToARMLinux.cmake" 2020-05-25 19:14:54 +03:00
docs [ASTMatchers] Matchers related to C++ inheritance 2020-05-29 12:38:01 -07:00
examples [CMake] Fix building with -DBUILD_SHARED_LIBS=ON on mingw 2020-05-11 23:51:14 +03:00
include Fix how cc1 command line options are mapped into FP options. 2020-06-01 22:00:30 -04:00
lib Fix violations of [basic.class.scope]p2. 2020-06-01 22:03:05 -07:00
runtime
test Fix how cc1 command line options are mapped into FP options. 2020-06-01 22:00:30 -04:00
tools [Matrix] Implement matrix index expressions ([][]). 2020-06-01 20:08:49 +01:00
unittests [ASTMatchers] Force c++ unittests to specify correct language standard 2020-06-01 07:52:01 +01:00
utils Fix violations of [basic.class.scope]p2. 2020-06-01 22:03:05 -07:00
www Fix parsing of enum-base to follow C++11 rules. 2020-05-08 19:32:00 -07:00
.clang-format
.clang-tidy - Update .clang-tidy to ignore parameters of main like functions for naming violations in clang and llvm directory 2020-01-31 16:49:45 +00:00
.gitignore
CMakeLists.txt [CMake] Pass CLANG_VENDOR variables into later stages 2020-05-29 09:13:08 +02:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt Revert "[nfc] test commit" 2020-05-16 15:12:04 -05:00

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source-level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:             http://clang.llvm.org/
Building and using Clang:         http://clang.llvm.org/get_started.html
Clang Static Analyzer:            http://clang-analyzer.llvm.org/
Information on the LLVM project:  http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang development mailing list:
  http://lists.llvm.org/mailman/listinfo/cfe-dev

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/