diff options
| author | Krasimir Georgiev <krasimir@google.com> | 2019-02-20 11:44:21 +0000 |
|---|---|---|
| committer | Krasimir Georgiev <krasimir@google.com> | 2019-02-20 11:44:21 +0000 |
| commit | 777bb8253393ef5b76443b6a95fdb4f7c89a1dd9 (patch) | |
| tree | de2d6d0912c2d99d1353c19d2eeeddb37df16bd6 /llvm/lib/Support/MathExtras.cpp | |
| parent | 6716f4af81f6c05dfb4b496cdf087b659838ff75 (diff) | |
| download | bcm5719-llvm-777bb8253393ef5b76443b6a95fdb4f7c89a1dd9.tar.gz bcm5719-llvm-777bb8253393ef5b76443b6a95fdb4f7c89a1dd9.zip | |
[clang-format] Do not emit replacements if Java imports are OK
Summary:
Currently clang-format would always emit a replacement for a block of Java imports even if it is correctly formatted:
```
% cat /tmp/Aggregator.java
import X;
% clang-format /tmp/Aggregator.java
import X;
% clang-format -output-replacements-xml /tmp/Aggregator.java
<?xml version='1.0'?>
<replacements xml:space='preserve' incomplete_format='false'>
<replacement offset='0' length='9'>import X;</replacement>
</replacements>
%
```
This change makes clang-format not emit replacements in this case. Note that
there is logic to not emit replacements in this case for C++.
Reviewers: ioeric
Reviewed By: ioeric
Subscribers: jdoerfert, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D58436
llvm-svn: 354452
Diffstat (limited to 'llvm/lib/Support/MathExtras.cpp')
0 files changed, 0 insertions, 0 deletions

