2

だから現在、私は次のスタイルを使用しています:

{ 
  BasedOnStyle: "LLVM", 
  IndentWidth: 4,   
  UseTab: false, 
  ColumnLimit: 150, 
  Standard: "Cpp11",
  BreakBeforeBraces: "Attach",  
  BreakBeforeBinaryOperators: false,    
  AlwaysBreakTemplateDeclarations: true, 
  AllowShortLoopsOnASingleLine: false,
  AllowShortIfStatementsOnASingleLine: false, 
  AllowAllParametersOfDeclarationOnNextLine: true, 
  SpacesInParentheses: true,    
  SpacesBeforeTrailingComments: 1, 
  SpaceInEmptyParentheses: false,
  SpaceAfterControlStatementKeyword: true, 
  PointerBindsToType: true, 
  MaxEmptyLinesToKeep: 1,
  IndentFunctionDeclarationAfterType: true, 
  IndentCaseLabels: true,
  ExperimentalAutoDetectBinPacking: true, 
  DerivePointerBinding: true, 
  Cpp11BracedListStyle: false, 
  ConstructorInitializerAllOnOneLineOrOnePerLine: true,
  BreakConstructorInitializersBeforeComma: true
}

そして得る

try {
}
 catch ( ... ) {
}

手に入れたいと思いながら

try {
} catch ( ... ) {
}

どのClang-Format Style Optionがそのような動作の原因になっていると言えるでしょうか?

4

2 に答える 2

1

try-catch-blocks のサポートは、最近追加されたばかりです。現在のバージョンに更新すると、これは修正されるはずです。

于 2014-06-03T08:31:20.890 に答える