]> granicus.if.org Git - clang/commit
clang-format: Support case ranges.
authorDaniel Jasper <djasper@google.com>
Sun, 20 Oct 2013 16:56:16 +0000 (16:56 +0000)
committerDaniel Jasper <djasper@google.com>
Sun, 20 Oct 2013 16:56:16 +0000 (16:56 +0000)
commitb3c887dcb70220eced72935725cd94d7e8325912
tree154c26ab9f0563d7b8926c19b61fa51360b4fb5f
parenta53bbae476f8f20d18250effb4cc3f110c9b8030
clang-format: Support case ranges.

Before (note the missing space before "..." which can lead to compile
errors):
  switch (x) {
    case 'A'... 'Z':
    case 1... 5:
        break;
  }

After:
  switch (x) {
    case 'A' ... 'Z':
    case 1 ... 5:
        break;
  }

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193050 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp