]> granicus.if.org Git - clang/commit
[clang-format] clang-format off/on not respected when using C Style comments
authorPaul Hoad <mydeveloperday@gmail.com>
Sat, 2 Mar 2019 09:08:51 +0000 (09:08 +0000)
committerPaul Hoad <mydeveloperday@gmail.com>
Sat, 2 Mar 2019 09:08:51 +0000 (09:08 +0000)
commit8e47b092c60e3b4842e6200e022dd1253e9896c6
tree550e126cc7489593aa5ec05e62835d3ae71de2d6
parent0205c9f6beefbb21ee658fa42786985cfb010bc7
[clang-format] clang-format off/on not respected when using C Style comments

Summary:
If the clang-format on/off is in a /* comment */ then the sorting of headers is not ignored

PR40901 - https://bugs.llvm.org/show_bug.cgi?id=40901

Reviewers: djasper, klimek, JonasToth, krasimir, alexfh

Reviewed By: alexfh

Subscribers: alexfh, cfe-commits, llvm-commits

Tags: #clang, #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D58819

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