我想使用clang格式来生成C函数,例如:
void cfg_InitConfig
(
cfg_Config_t* cfg,
char* name
)
{
// TODO function
}
阅读该手册后,我认为clang格式无法做到。有可能吗?
void WhitespaceManager :: alignConsecutiveDeclarations()
在以下链接中:Reference Link in Github代码:
void WhitespaceManager::alignConsecutiveDeclarations() {
if (!Style.AlignConsecutiveDeclarations)
return;
// FIXME: Currently we don't handle properly the PointerAlignment: Right
// The * and & are not aligned and are left dangling. Something has to be done
// about it, but it raises the question of alignment of code like:
// const char* const* v1;
// float const* v2;
// SomeVeryLongType const& v3;
AlignTokens(Style, [](Change const &C) { return C.IsStartOfDeclName; },Changes);
}
希望这会有所帮助。