Parser support for C99 designated initializers
author Alexandre Courbot
()
committer Milian Wolff
()
commit 8bdf411609ffdb0cdea155fb12b4af4bbad76c45
tree 0124d316ca77de7c8e618abeafc76c1dd4f786c0
parent bf73d74e8bb3f5886ec31589b53f8ada1e53b0f1
Parser support for C99 designated initializers

Support C99 initializers in the C++ parser, e.g:

struct foo_t foo = {
.has_cake = true,
.nb_candles = 12,
};

int bar[10] = {
[1] = 15,
[9] = 25,
};

REVIEW: 103448
languages/cpp/parser/parser.cpp
languages/cpp/parser/parser.h
languages/cpp/parser/tests/test_parser.cpp
languages/cpp/parser/tests/test_parser.h