Refactor InitListChecker to check only a single (explicit) initializer
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 29 Aug 2019 22:49:33 +0000 (22:49 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 29 Aug 2019 22:49:33 +0000 (22:49 +0000)
commit33e9be6c8b5aad9c164e082c7e78cc08dd13cac1
treee926a08875c477003a17fc3fa85c24ecbc6bc12a
parent8823dbc552ec6946027c59ac53510404b98671b6
Refactor InitListChecker to check only a single (explicit) initializer
list, rather than recursively checking multiple lists in C.

This simplification is in preparation for making InitListChecker
maintain more state that's specific to the explicit initializer list,
particularly when handling designated initialization.

llvm-svn: 370418
clang/lib/Sema/SemaInit.cpp
clang/test/Sema/designated-initializers.c