This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// not tested yet | |
// | |
std::multimap<std::string, std::string> MessageToMap( | |
const google::protobuf::Message& message) { | |
std::multimap<std::string, std::string> params; | |
auto* descriptor = message.GetDescriptor(); | |
auto* reflection = message.GetReflection(); | |
int field_count = descriptor->field_count(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: AlwaysBreak # XXX: prefer `BlockIndent` but not supported on clang-format 13.0. | |
# AlignArrayOfStructures: None # clang-format 13 | |
AlignConsecutiveAssignments: None | |
AlignConsecutiveBitFields: None | |
AlignConsecutiveDeclarations: None | |
AlignConsecutiveMacros: None | |
AlignEscapedNewlines: Right # XXX | |
AlignOperands: AlignAfterOperator | |
AlignTrailingComments: true |