6
통근 블록 전에 브레이크 :그 소리 - 형식 : 람다 함수에 대한 중괄호와 나는이 같은 형식 람다 기능이
auto cb = [](std::string const& _param)
{
std::cout << _param;
};
내가 새 행에 여는 중괄호를 유지하고 싶은,하지만 clang-format
항상 배치 첫 줄 끝에. 위의 스타일을 따르도록 clang-format
을 구성 할 수 있습니까?
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: true
BreakBeforeBraces: Allman
나는 또한 extern
블록에 대해 동일한 작업을 수행하고자하는이 :
extern "C"
{
// ...
}
입니다. 어떤 버전의 'clang-format'을 사용하고 있습니까? 버그 일 수 있습니다. https://www.mail-archive.com/[email protected]/msg05471.html – syntagma
버전 5.0.0 (tags/google/stable/2017-03- 17) –
람다 (https://bugs.llvm.org//show_bug.cgi?id=32151) 및 extern 블록 (https://bugs.llvm.org//show_bug.cgi?id)에서 문제를 추적하는 버그 보고서를 발견했습니다. = 26689 –