#
f886c03e |
| 03-Jan-2019 |
Serge Guelton <sguelton@quarkslab.com> |
Portable Python script across Python version
StringIO is obsoleted in Python3, replaced by io.BytesIO or io.StringIO depending on the use.
Differential Revision: https://reviews.llvm.org/D55196
ll
Portable Python script across Python version
StringIO is obsoleted in Python3, replaced by io.BytesIO or io.StringIO depending on the use.
Differential Revision: https://reviews.llvm.org/D55196
llvm-svn: 350318
show more ...
|
#
b748c0e6 |
| 18-Dec-2018 |
Serge Guelton <sguelton@quarkslab.com> |
Portable Python script across Python version
Make scripts more future-proof by importing most __future__ stuff.
Differential Revision: https://reviews.llvm.org/D55208
llvm-svn: 349504
|
#
c0ebe773 |
| 18-Dec-2018 |
Serge Guelton <sguelton@quarkslab.com> |
Portable Python script across Python version
Using from __future__ import print_function it is possible to have a compatible behavior of `print(...)` across Python version.
Differential Revision: h
Portable Python script across Python version
Using from __future__ import print_function it is possible to have a compatible behavior of `print(...)` across Python version.
Differential Revision: https://reviews.llvm.org/D55213
llvm-svn: 349454
show more ...
|
Revision tags: llvmorg-7.0.1, llvmorg-7.0.1-rc3, llvmorg-7.0.1-rc2, llvmorg-7.0.1-rc1, llvmorg-7.0.0, llvmorg-7.0.0-rc3, llvmorg-7.0.0-rc2, llvmorg-7.0.0-rc1 |
|
#
cb4dfaef |
| 03-Aug-2018 |
Krasimir Georgiev <krasimir@google.com> |
clang-format-diff: Make it work with python3 too
Summary: It is not necessary, but would be nice if the script run on python3 as well (as opposed to only python2, which is going to be deprecated htt
clang-format-diff: Make it work with python3 too
Summary: It is not necessary, but would be nice if the script run on python3 as well (as opposed to only python2, which is going to be deprecated https://pythonclock.org/)
Contributed by MarcoFalke!
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: lebedev.ri, sammccall, cfe-commits
Differential Revision: https://reviews.llvm.org/D48098
llvm-svn: 338839
show more ...
|
Revision tags: llvmorg-6.0.1, llvmorg-6.0.1-rc3, llvmorg-6.0.1-rc2, llvmorg-6.0.1-rc1, llvmorg-5.0.2, llvmorg-5.0.2-rc2, llvmorg-5.0.2-rc1, llvmorg-6.0.0, llvmorg-6.0.0-rc3, llvmorg-6.0.0-rc2, llvmorg-6.0.0-rc1, llvmorg-5.0.1, llvmorg-5.0.1-rc3, llvmorg-5.0.1-rc2, llvmorg-5.0.1-rc1, llvmorg-5.0.0, llvmorg-5.0.0-rc5, llvmorg-5.0.0-rc4, llvmorg-5.0.0-rc3, llvmorg-5.0.0-rc2, llvmorg-5.0.0-rc1, llvmorg-4.0.1, llvmorg-4.0.1-rc3, llvmorg-4.0.1-rc2, llvmorg-4.0.1-rc1, llvmorg-4.0.0, llvmorg-4.0.0-rc4, llvmorg-4.0.0-rc3, llvmorg-4.0.0-rc2, llvmorg-4.0.0-rc1, llvmorg-3.9.1, llvmorg-3.9.1-rc3 |
|
#
f4214036 |
| 03-Dec-2016 |
Sylvestre Ledru <sylvestre@debian.org> |
Add the --no-color option to the git call in the doc when using clang-format-diff
llvm-svn: 288605
|
Revision tags: llvmorg-3.9.1-rc2, llvmorg-3.9.1-rc1, llvmorg-3.9.0, llvmorg-3.9.0-rc3, llvmorg-3.9.0-rc2, llvmorg-3.9.0-rc1, llvmorg-3.8.1, llvmorg-3.8.1-rc1, llvmorg-3.8.0, llvmorg-3.8.0-rc3, llvmorg-3.8.0-rc2 |
|
#
18b1de3e |
| 20-Jan-2016 |
Daniel Jasper <djasper@google.com> |
clang-format-diff: Replace hard-code default for clang-format binary with flag.
Patch by Kwasi Mensah, thank you.
llvm-svn: 258328
|
Revision tags: llvmorg-3.8.0-rc1, llvmorg-3.7.1, llvmorg-3.7.1-rc2, llvmorg-3.7.1-rc1 |
|
#
db125cb3 |
| 07-Oct-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Add include sorting capabilities to sublime, emacs and clang-format-diff.py.
llvm-svn: 249567
|
Revision tags: llvmorg-3.7.0, llvmorg-3.7.0-rc4, llvmorg-3.7.0-rc3, studio-1.4, llvmorg-3.7.0-rc2, llvmorg-3.7.0-rc1, llvmorg-3.6.2, llvmorg-3.6.2-rc1, llvmorg-3.6.1, llvmorg-3.6.1-rc1, llvmorg-3.5.2, llvmorg-3.5.2-rc1 |
|
#
8c68a64e |
| 11-Mar-2015 |
Daniel Jasper <djasper@google.com> |
clang-format: Recognize the .ts (TypeScript) extension as JavaScript.
Patch by Martin Probst. Thank you.
llvm-svn: 231926
|
Revision tags: llvmorg-3.6.0, llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3, llvmorg-3.6.0-rc2, llvmorg-3.6.0-rc1, llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1 |
|
#
7c627a0d |
| 08-Dec-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Make clang-format-diff.py format java files.
llvm-svn: 223685
|
#
c670688a |
| 14-Nov-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Give clang-format-diff.py a -v option.
With it, it prints the file being formatted. Apparently people are formatting thousands of files and some progress indication is helpful.
llvm-s
clang-format: Give clang-format-diff.py a -v option.
With it, it prints the file being formatted. Apparently people are formatting thousands of files and some progress indication is helpful.
llvm-svn: 221990
show more ...
|
Revision tags: llvmorg-3.5.0 |
|
#
bf041d97 |
| 02-Sep-2014 |
Ed Schouten <ed@80386.nl> |
Use /usr/bin/env python instead of /usr/bin/python.
On operating systems like the BSDs, it is typically the case that /usr/bin/python does not exist. We should therefore use /usr/bin/env instead. Th
Use /usr/bin/env python instead of /usr/bin/python.
On operating systems like the BSDs, it is typically the case that /usr/bin/python does not exist. We should therefore use /usr/bin/env instead. This is also done in various other scripts in tools/.
llvm-svn: 216945
show more ...
|
Revision tags: llvmorg-3.5.0-rc4, llvmorg-3.5.0-rc3, llvmorg-3.5.0-rc2, llvmorg-3.5.0-rc1, llvmorg-3.4.2, llvmorg-3.4.2-rc1 |
|
#
2e8600c0 |
| 14-May-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Add clang-format-diff usage examples for SVN.
llvm-svn: 208766
|
Revision tags: llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1 |
|
#
2158912a |
| 21-Jan-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Enable formatting for .proto and .protodevel files.
Support for protocol buffer files seems complete enough.
llvm-svn: 199750
|
Revision tags: llvmorg-3.4.0 |
|
#
db7933ab |
| 19-Dec-2013 |
Daniel Jasper <djasper@google.com> |
Fix usage description of clang-format-diff.py.
llvm-svn: 197668
|
#
679bf014 |
| 18-Dec-2013 |
Alp Toker <alp@nuanti.com> |
clang-format-diff.py: fix -regex/-iregex matching
While debating the finer points of file extension matching, we somehow missed the bigger problem that the current code will match anything starting
clang-format-diff.py: fix -regex/-iregex matching
While debating the finer points of file extension matching, we somehow missed the bigger problem that the current code will match anything starting with the default or user-specified pattern (e.g. lit.site.cfg.in).
Fix this by doing what find(1) does, implicitly wrapping the pattern with ^$.
llvm-svn: 197608
show more ...
|
#
c49406d1 |
| 18-Dec-2013 |
Alp Toker <alp@nuanti.com> |
clang-format-diff.py: add the OpenCL file extension
It's handled correctly as a C-family language.
llvm-svn: 197542
|
Revision tags: llvmorg-3.4.0-rc3 |
|
#
25c68389 |
| 16-Dec-2013 |
Alexander Kornienko <alexfh@google.com> |
Added -iregex for case-insensitive regex to filter file names.
Summary: -regex and -iregex both mimic options of the find utility. Made the default list of extensions case-insensitive, so that it's
Added -iregex for case-insensitive regex to filter file names.
Summary: -regex and -iregex both mimic options of the find utility. Made the default list of extensions case-insensitive, so that it's not only C and CPP extensions are accepted in upper case.
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2415
llvm-svn: 197378
show more ...
|
#
8c7cbdf5 |
| 10-Dec-2013 |
Alp Toker <alp@nuanti.com> |
clang-format-diff.py: Support -regex filter and more filename extensions
Add support for more filename extensions based on the list in the clang plus JavaScript.
Also adds a -regex option so users
clang-format-diff.py: Support -regex filter and more filename extensions
Add support for more filename extensions based on the list in the clang plus JavaScript.
Also adds a -regex option so users can override defaults if they have unusual file extensions or want to format everything in the diff.
Keeping with tradition the flag is modelled on Unix conventions, this time matching the semantics of find(1).
llvm-svn: 196917
show more ...
|
#
fcf30326 |
| 05-Dec-2013 |
Alp Toker <alp@nuanti.com> |
clang-format-diff.py: pass through errors to stderr, not stdout
Also use write() for unified diff output to avoid further processing by the print function (e.g. trailing newline).
llvm-svn: 196484
|
#
0e7f6da6 |
| 04-Dec-2013 |
Alp Toker <alp@nuanti.com> |
clang-format-diff.py: Fix 'beintroduced' in help output
Also update docs to reflect recently changed -i inplace edit behaviour.
llvm-svn: 196336
|
Revision tags: llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1 |
|
#
95c009af |
| 11-Oct-2013 |
Alexander Kornienko <alexfh@google.com> |
Changed clang-format-diff.py to output diff by default. Added -i option to apply changes to files instead.
Summary: "svn diff|clang-format-diff.py" will just output the diff. Now it's possible to us
Changed clang-format-diff.py to output diff by default. Added -i option to apply changes to files instead.
Summary: "svn diff|clang-format-diff.py" will just output the diff. Now it's possible to use: svn diff|clang-format-diff.py|patch -p0 as an equivalent to: svn diff|clang-format-diff.py -i ;)
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1840
llvm-svn: 192505
show more ...
|
#
e8845ad4 |
| 08-Oct-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Don't exit with failure on empty files.
Also let clang-format-diff.py detect errors based on clang-format's return code. Otherwise messages like "Can't find usable .clang-format, falli
clang-format: Don't exit with failure on empty files.
Also let clang-format-diff.py detect errors based on clang-format's return code. Otherwise messages like "Can't find usable .clang-format, falling back to LLVM style" can make it fail, which might be undesired.
Patch by Alp Toker. Thank you!
llvm-svn: 192184
show more ...
|
#
164c8e18 |
| 02-Oct-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix clang-format-diff.py according to diff specification.
Patch by Alp Toker. Many thanks!
Original descriptions: clang-format-diff incorrectly modifies unchanged lines due to an erro
clang-format: Fix clang-format-diff.py according to diff specification.
Patch by Alp Toker. Many thanks!
Original descriptions: clang-format-diff incorrectly modifies unchanged lines due to an error in diff parsing.
The unified diff format has a default line change count of 1, and 0 may be specified to indicate that no lines have been added. This patch updates the parser to accurately reflect the diff specification.
This also has the benefit of stabilising the operation so it will produce the same output when run multiple times on the same changeset, which was previously not the case.
No tests added because this script is not currently tested (though we should look into that!)
llvm-svn: 191820
show more ...
|
#
cf627f0f |
| 21-Sep-2013 |
Daniel Jasper <djasper@google.com> |
Fix clang-format-diff.py to accept -style again.
Copy and paste error in r190935..
llvm-svn: 191137
|
#
dcab7fbb |
| 18-Sep-2013 |
Daniel Jasper <djasper@google.com> |
Simplify clang-format-diff.py using new clang-format options.
clang-format's -lines parameter makes this significantly easier.
llvm-svn: 190935
|