llvm-project/clang
Thomas Preud'homme 507bbc45bb [AST][NFC] Silence GCC warning about broken strict aliasing rules
The deserialize() method would trigger the following warning on GCC <7:

   warning: dereferencing type-punned pointer will break
       strict-aliasing rules [-Wstrict-aliasing]

       ParamIdx P(*reinterpret_cast<ParamIdx *>(&S));
                                                  ^

&S was previously reinterpret_casted from a ParamIdx into a SerialType,
it is therefore safe to cast back into a ParamIdx. Similar to what was
done in D50608, we replace it with two static_cast via void * which
silences the warning and presumably makes GCC understand that no
strict-aliasing violation is happening.

No functional change intended.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D92384
2020-12-04 14:34:51 +00:00
..
INPUTS
bindings [NFC] Don't run python binding tests with sanitizers 2020-10-29 23:48:08 -07:00
cmake [CMake][Fuchsia] Install llvm-elfabi 2020-12-02 11:59:14 -08:00
docs s/instantate/instantiate/ throughout. NFCI. 2020-12-01 22:13:40 -05:00
examples Add a call super attribute plugin example 2020-11-20 08:51:12 -05:00
include [AST][NFC] Silence GCC warning about broken strict aliasing rules 2020-12-04 14:34:51 +00:00
lib [HIP] Fix bug in driver about wavefront size 2020-12-04 08:36:52 -05:00
runtime [CMake][compiler-rt][libunwind] Compile assembly files as ASM not C, unify workarounds 2020-08-27 15:40:15 +03:00
test [HIP] Fix bug in driver about wavefront size 2020-12-04 08:36:52 -05:00
tools Support: Change InMemoryFileSystem::addFileNoOwn to take a MemoryBufferRef, NFC 2020-12-03 18:09:52 -08:00
unittests [Clang][Sema] Attempt to fix CTAD faulty copy of non-local typedefs 2020-12-03 11:35:47 +01:00
utils [TableGen] Eliminate the 'code' type 2020-12-03 10:19:11 -05:00
www P0857R0: Parse a requires-clause after an explicit 2020-12-03 15:54:16 -08:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt Reland [CMake][NewPM] Move ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER into llvm/ 2020-12-01 14:00:32 -08:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.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/