llvm-capstone/clang
Sergei Barannikov 18a628ec4e [AST] Use correct APSInt width when evaluating string literals
The width of the APSInt values should be the width of an element.
getCharByteWidth returns the size of an element in _host_ bytes, which
makes the width N times greater, where N is the ratio between target's
CHAR_BIT and host's CHAR_BIT.
This is NFC for in-tree targets because all of them have CHAR_BIT == 8.

Reviewed By: cor3ntin, aaron.ballman

Differential Revision: https://reviews.llvm.org/D154773
2023-09-05 19:14:09 +03:00
..
bindings
cmake [CMake] Add option to disable driver build in Fuchsia cache file 2023-09-05 15:22:15 +00:00
docs [Sema] Make C++ functional-style cast warn about dropped qualifiers (-Wcast-qual) 2023-09-05 12:48:38 +02:00
examples Fix examples after C2x renaming 2023-08-11 08:01:17 -04:00
include [Serialization] Modernize ModuleInfo (NFC) 2023-09-05 00:22:51 -07:00
lib [AST] Use correct APSInt width when evaluating string literals 2023-09-05 19:14:09 +03:00
runtime [CMake] Ensure CLANG_RESOURCE_DIR is respected. 2023-06-03 04:21:35 -07:00
test [NFC][Clang] Fix test constexpr-function-recovery-crash.cpp (#65269) 2023-09-05 23:21:44 +08:00
tools [Object] Change OffloadBinary::write to return SmallString<0> 2023-09-01 09:19:25 -07:00
unittests [Clang] Fix JIT test on 32-bit systems 2023-09-05 16:04:22 +01:00
utils [clang][doc] Don't escape _ in .rst files. (#65277) 2023-09-05 17:54:46 +02:00
www Revert "[clang] Enable sized deallocation by default in C++14 onwards" 2023-08-29 09:36:59 -04:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt cmake: add missing dependencies on ClangDriverOptions tablegen 2023-08-04 10:27:19 -07:00
CodeOwners.rst Add my Discord, IRC, and Discourse handles 2023-08-04 09:12:14 -04:00
INSTALL.txt
LICENSE.TXT
NOTES.txt Revert "Test commit config" 2023-08-22 16:43:34 -07: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 forums:
  https://discourse.llvm.org/c/clang/

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