]> granicus.if.org Git - clang/commit
clang-format: Understand single-line comments at the end of blocks.
authorDaniel Jasper <djasper@google.com>
Wed, 7 Jan 2015 14:00:11 +0000 (14:00 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 7 Jan 2015 14:00:11 +0000 (14:00 +0000)
commit143cd925d8c7da707013cb8a82afc1fa61186ee6
tree2ac3961e0a9ff05fe3aee2ef43c0d4835a93fc79
parent5f3321a2c1bffe97e88ea20c246b1acf54199247
clang-format: Understand single-line comments at the end of blocks.

This prevents clang-format from moving/aligning the comment in the
snippet:
  void f() {
    int i; // some comment
    // some unrelated comment
  }

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