aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-01-05 13:06:27 +0000
committerDaniel Jasper <djasper@google.com>2016-01-05 13:06:27 +0000
commit0a589416e89dbcc1747ce4c2fe053bae53f66bf6 (patch)
tree1f8fc5cd9b9901e6d1592c104b2e4cb4f0011b1a /clang/lib/CodeGen/CodeGenModule.cpp
parent801cdb27e4639ffab3bec7141ed16c8830c44e62 (diff)
downloadllvm-0a589416e89dbcc1747ce4c2fe053bae53f66bf6.zip
llvm-0a589416e89dbcc1747ce4c2fe053bae53f66bf6.tar.gz
llvm-0a589416e89dbcc1747ce4c2fe053bae53f66bf6.tar.bz2
clang-format: Handle \n the same way as std::endl with stream operator.
clang-format breaks multi-line streams after std::endl. It now also break for '\n', the suggested replacement for std::endl: http://llvm.org/docs/CodingStandards.html#avoid-std-endl Before: llvm::errs() << aaaaaaaaaaaaaaaaaaaaaa << '\n' << bbbbbbbbbbbbbbbbbbbbbb << '\n'; llvm::errs() << aaaa << "aaaaaaaaaaaaaaaaaa\n" << bbbb << "bbbbbbbbbbbbbbbbbb\n"; After: llvm::errs() << aaaaaaaaaaaaaaaaaaaaaa << '\n' << bbbbbbbbbbbbbbbbbbbbbb << '\n'; llvm::errs() << aaaa << "aaaaaaaaaaaaaaaaaa\n" << bbbb << "bbbbbbbbbbbbbbbbbb\n"; This changeset ensure that multiline streams have a line break after: - std::endl - '\n' - "\n" - "Some Text\n" Patch by Jean-Philippe Dufraigne, thank you. llvm-svn: 256832
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions