aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/InMemoryModuleCache.cpp
diff options
context:
space:
mode:
authorPaul Hoad <mydeveloperday@gmail.com>2019-03-30 13:05:40 +0000
committerPaul Hoad <mydeveloperday@gmail.com>2019-03-30 13:05:40 +0000
commit88335c21a4664b20e0772fc01e022c681e26eae4 (patch)
tree71c3236ff41ccc96d5f5fcb0d9544af95616653f /clang/lib/Serialization/InMemoryModuleCache.cpp
parent08a940d629fa218670caaa949095bc5026f019b3 (diff)
downloadllvm-88335c21a4664b20e0772fc01e022c681e26eae4.zip
llvm-88335c21a4664b20e0772fc01e022c681e26eae4.tar.gz
llvm-88335c21a4664b20e0772fc01e022c681e26eae4.tar.bz2
[clang-format] [PR41187] moves Java import statements to the wrong location if code contains statements that start with the word import
Summary: Import sorting of java file, incorrectly move import statement to after a function beginning with the word import. Make 1 character change to regular expression to ensure there is always at least one space/tab after the word import Previously clang-format --style="LLVM" would format ``` import X; class C { void m() { importFile(); } } ``` as ``` class C { void m() { importFile(); import X; } } ``` Reviewers: djasper, klimek, reuk, JonasToth Reviewed By: klimek Subscribers: cfe-commits Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D59684 llvm-svn: 357345
Diffstat (limited to 'clang/lib/Serialization/InMemoryModuleCache.cpp')
0 files changed, 0 insertions, 0 deletions