[cfe-dev] clang-format support for braces in struct initialization
Martin Liška
mliska at suse.cz
Tue Aug 5 05:27:48 PDT 2014
Hello,
I would like to implement support for braces for struct inialization like:
|address temp_addres= {
0, // street_no
nullptr, // street_name
"Hamilton", // city
"Ontario", // prov
nullptr, // postal_code
};
|
My interest is to control if the brace after equation should be placed to a separate line or not (controlled by *BreakBeforeBraces). I tried to read UnwrappedLineParser, but don't know how to identify such a context?
Thanks,
Martin
*
More information about the cfe-dev
mailing list