llvm/clang
Yuanfang Chen 217f0f735a [Clang][Sema] Implement GCC -Wcast-function-type
```
Warn when a function pointer is cast to an incompatible function
pointer. In a cast involving function types with a variable argument
list only the types of initial arguments that are provided are
considered. Any parameter of pointer-type matches any other
pointer-type. Any benign differences in integral types are ignored, like
int vs. long on ILP32 targets. Likewise type qualifiers are ignored. The
function type void (*) (void) is special and matches everything, which
can be used to suppress this warning. In a cast involving pointer to
member types this warning warns whenever the type cast is changing the
pointer to member type. This warning is enabled by -Wextra.
```

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D97831
2021-03-24 16:04:18 -07:00
..
bindings
cmake [CMake][Fuchsia] Include llvm-lipo 2021-03-24 14:21:40 -07:00
docs [Clang][Sema] Implement GCC -Wcast-function-type 2021-03-24 16:04:18 -07:00
examples
include [Clang][Sema] Implement GCC -Wcast-function-type 2021-03-24 16:04:18 -07:00
INPUTS
lib [Clang][Sema] Implement GCC -Wcast-function-type 2021-03-24 16:04:18 -07:00
runtime
test [Clang][Sema] Implement GCC -Wcast-function-type 2021-03-24 16:04:18 -07:00
tools [clang][deps] NFC: Extract ModuleID struct 2021-03-24 11:57:43 +01:00
unittests [Tooling] Handle compilation databases containing commands with double dashes 2021-03-24 16:01:47 -04:00
utils [RISCV][Clang] Add RVV Vector Indexed Load intrinsic functions. 2021-03-23 19:18:50 -07:00
www [clang] [C++2b] [P1102] Accept lambdas without parameter list (). 2021-03-24 14:42:27 +01:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
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/