llvm-project/clang
Shafik Yaghmour 8de51375f1 [Clang] Tighten restrictions on enum out of range diagnostic to avoid constant initialization
The restrictions added in D131704 were not sufficient to avoid all non-constant
expression contexts. In particular constant initialization cases.

We need to check EvaluatingDecl to detect if the variable we are initializing is
constexpr or not.

At this point it looks like this is the remaining case affecting various projects
with this diagnostic.

Differential Revision: https://reviews.llvm.org/D131874
2022-08-17 14:14:00 -07:00
..
bindings Fixed a number of typos 2022-08-01 13:13:18 -04:00
cmake Reland "[lldb/Fuzzer] Add fuzzer for expression evaluator" 2022-08-04 11:47:06 -04:00
docs Re-apply "Deferred Concept Instantiation Implementation"" 2022-08-17 06:24:40 -07:00
examples
include [clang][llvm][NFC] Change misexpect's tolerance option to be 32-bit 2022-08-17 14:38:53 +00:00
lib [Clang] Tighten restrictions on enum out of range diagnostic to avoid constant initialization 2022-08-17 14:14:00 -07:00
runtime
test [Clang] Tighten restrictions on enum out of range diagnostic to avoid constant initialization 2022-08-17 14:14:00 -07:00
tools [clang][deps] Compute command-lines for dependencies immediately 2022-08-16 14:25:27 -07:00
unittests [clang-format] Handle comments between access specifier and colon 2022-08-16 20:18:21 -07:00
utils [cmake] Fix tablegen exports 2022-08-16 14:17:23 +02:00
www Add N2653 to the C2x status page 2022-08-17 11:30:31 -04:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [CMake] Explicit bootstrap options override any passthrough ones. 2022-08-17 08:16:10 +01: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 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/