Given the following content: TranslationUnitStore::~TranslationUnitStore() { RemoveAll(); } std::string TextToInsertInBuffer() { return original_string_; } std::string MainCompletionText() { return everything_except_return_type_; } std::string ExtraMenuInfo() { return return_type_; } std::string DetailedInfoForPreviewWindow() { return detailed_info_; } clang-format will produce this: TranslationUnitStore::~TranslationUnitStore() { RemoveAll(); } std::string TextToInsertInBuffer() { return original_string_; } std::string MainCompletionText() { return everything_except_return_type_; } std::string ExtraMenuInfo() { return return_type_; } std::string DetailedInfoForPreviewWindow() { return detailed_info_; } I see no set of options I can set to prevent clang-format from doing that. In fact, I'd love it if there was an option that would expand such inlined function bodies.
AllowShortFunctionsOnASingleLine was added in r195256.
Thank you for the quick fix!