title: How to make clang-format indent extern C blocks in C++?
body: <p>I'm just learning to use clang-format. I mostly managed to configure it to match my taste, but I can't figure out how to make it indent <code>extern "C"</code> blocks.</p>
  
  <p>This is the desired outcome:</p>
  
  <pre><code>extern "C" {
      void myFunction() {
          // ...
      }
  }
  </code></pre>
  
  <p>But this is what I get:</p>
  
  <pre><code>extern "C" {
  void myFunction() {
      // ...
  }
  }
  </code></pre>
  
  <p>Here is my configuration:</p>
  
  <pre><code>BasedOnStyle: 'LLVM'
  IndentWidth: 4
  AccessModifierOffset: -4
  AlignAfterOpenBracket: 'false'
  AlignConsecutiveAssignments: 'false'
  AlignConsecutiveDeclarations: 'false'
  AlignEscapedNewlinesLeft: 'true'
  AlignOperands: 'true'
  AlignTrailingComments: 'true'
  AllowAllParametersOfDeclarationOnNextLine: 'true'
  AllowShortBlocksOnASingleLine: 'false'
  AllowShortCaseLabelsOnASingleLine: 'false'
  AllowShortFunctionsOnASingleLine: 'true'
  AllowShortIfStatementsOnASingleLine: 'false'
  AllowShortLoopsOnASingleLine: 'false'
  AlwaysBreakAfterDefinitionReturnType: 'None'
  AlwaysBreakAfterReturnType: 'None'
  AlwaysBreakBeforeMultilineStrings: 'false'
  AlwaysBreakTemplateDeclarations: 'true'
  BinPackArguments: 'true'
  BinPackParameters: 'true'
  BreakBeforeBraces: 'Custom'
  BreakBeforeTernaryOperators: false
  BraceWrapping: {
    AfterClass: 'false'
    AfterControlStatement: 'false'
    AfterEnum: 'false'
    AfterFunction: 'false'
    AfterNamespace: 'false'
    AfterStruct: 'false'
    AfterUnion: 'false'
    BeforeCatch: 'true'
    BeforeElse: 'true'
    IndentBraces: 'false'
  }
  BreakConstructorInitializersBeforeComma: 'false'
  BreakStringLiterals: 'false'
  ColumnLimit: 0
  ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
  DerivePointerAlignment: 'false'
  KeepEmptyLinesAtTheStartOfBlocks: 'true'
  MaxEmptyLinesToKeep: 1
  NamespaceIndentation: 'All'
  PointerAlignment: 'Right'
  ReflowComments: 'false'
  SortIncludes: 'false'
  SpaceAfterCStyleCast: 'true'
  SpaceBeforeAssignmentOperators: 'true'
  SpaceBeforeParens: 'ControlStatements'
  SpaceInEmptyParentheses: 'false'
  SpacesInAngles: 'false'
  SpacesInCStyleCastParentheses: 'false'
  SpacesInContainerLiterals: 'true'
  SpacesInParentheses: 'false'
  SpacesInSquareBrackets: 'false'
  Standard: 'Cpp11'
  TabWidth: 4
  UseTab: 'Never'
  </code></pre>