Review Request: Parser support for C99 designated initializers

Alexandre Courbot gnurou at
Sun Feb 19 05:46:48 UTC 2012

This is an automatically generated e-mail. To reply, visit:

(Updated Feb. 19, 2012, 5:46 a.m.)

Review request for KDevelop and Milian Wolff.


Removed the patch, please do not merge yet. This patch seems to introduce an infinite loop in the parser on some patterns. Need to fix that first.


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,


  languages/cpp/parser/parser.h ffc3967e9bec09ff56204aab98e8f80ec6b036cf 
  languages/cpp/parser/parser.cpp 1c9d9e403500f35761ebc6deb737a4a68a53c28d 
  languages/cpp/parser/tests/test_parser.h fa92f1ce284df0936724f74f42f9ad6d4b3c97fc 
  languages/cpp/parser/tests/test_parser.cpp f747cfa44bdf962be33cf97841fdae739b3e1771 



Used it for a couple of weeks, ensured the parser tests all pass.


Alexandre Courbot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list