llvm-project/clang-tools-extra/test
Malcolm Parsons 297b6a2b6e [clang-tidy] Don't use assignment for value-initialized enums
Summary:
The modernize-use-default-member-init check crashes when trying to
create an assignment value for a value-initialized enum because it isn't a
BuiltinType.
An enum cannot be initialized by assigning 0 to it unless a cast is added.
It could be initialized with an enumerator with the value 0, but there might not
be one.
Avoid these issues by ignoring the UseAssignment setting for value-initialized
enums.

Fixes PR35050.

Reviewers: aaron.ballman, alexfh, JonasToth

Reviewed By: JonasToth

Subscribers: xazax.hun, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D57852

llvm-svn: 353554
2019-02-08 19:44:42 +00:00
..
Unit Assume the shared library path variable is LD_LIBRARY_PATH on systems 2018-01-20 14:34:33 +00:00
change-namespace [change-namepsace] make it possible to whitelist symbols so they don't get updated. 2017-02-24 11:54:45 +00:00
clang-apply-replacements Deduplicate replacements from diagnostics. 2018-09-25 08:24:07 +00:00
clang-doc [clang-doc] Switch to default to all-TUs executor 2018-10-26 19:11:34 +00:00
clang-move Re-enable a clang-move test on windows. 2018-05-18 09:25:36 +00:00
clang-query
clang-reorder-fields [clang-reorder-fields] Emit warning when reordering breaks member init list dependencies 2017-07-30 06:43:03 +00:00
clang-tidy [clang-tidy] Don't use assignment for value-initialized enums 2019-02-08 19:44:42 +00:00
clangd [Clangd] textDocument/definition and textDocument/declaration "bounce" between definition and declaration location when they are distinct. 2019-02-02 05:56:00 +00:00
include-fixer Remove the optional dependency from libclang to clang-tidy/include-fixer 2018-11-23 15:02:33 +00:00
modularize Revert r351208 (which was a revert of r350892). 2019-01-17 20:21:44 +00:00
pp-trace Revert r351208 (which was a revert of r350892). 2019-01-17 20:21:44 +00:00
.clang-format
CMakeLists.txt [clangd] XPC transport layer 2019-01-16 00:24:22 +00:00
lit.cfg [extra] unit tests enable crash-recovery cases on FreeBSD 2019-01-24 07:58:42 +00:00
lit.site.cfg.in [clangd] XPC transport layer 2019-01-16 00:24:22 +00:00