Revision tags: llvmorg-3.6.0-rc1 |
|
#
949ff4d9 |
| 09-Jan-2015 |
Manuel Klimek <klimek@google.com> |
Add the shifted cursor position to XML output, so it can be used by editor integrations.
llvm-svn: 225516
|
Revision tags: llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1 |
|
#
337f5b27 |
| 10-Nov-2014 |
Nico Weber <nicolasweber@gmx.de> |
clang-format: Document that --assume-filename affects the language.
llvm-svn: 221606
|
#
06dbac4b |
| 29-Oct-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Cut more clangAST dependencies.
Hopefully fixing windows builds.
llvm-svn: 220878
|
#
23376259 |
| 09-Sep-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support regex literals with trailing escaped slash.
Before: var regex = / a\//; int i;
After: var regex = /a\//; int i;
This required pushing the Lexer into its wrapper cl
clang-format: [JS] Support regex literals with trailing escaped slash.
Before: var regex = / a\//; int i;
After: var regex = /a\//; int i;
This required pushing the Lexer into its wrapper class and generating a new one in this specific case. Otherwise, the sequence get lexed as a //-comment. This is hacky, but I don't know a better way (short of supporting regex literals in the Lexer).
Pushing the Lexer down seems to make all the call sites simpler.
llvm-svn: 217444
show more ...
|
#
4db69bd5 |
| 04-Sep-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Support alternative operator names as identifiers.
Before: not. and . or . not_eq = 1;
After: not.and.or.not_eq = 1;
llvm-svn: 217179
|
Revision tags: llvmorg-3.5.0, llvmorg-3.5.0-rc4, llvmorg-3.5.0-rc3, llvmorg-3.5.0-rc2, llvmorg-3.5.0-rc1 |
|
#
2d2b420a |
| 06-Jul-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm api change.
llvm-svn: 212408
|
#
66cc07b4 |
| 27-Jun-2014 |
David Blaikie <dblaikie@gmail.com> |
Remove 'const' from MemoryBuffers used through the SourceManager
This removes a const_cast added in r211884 that occurred due to an inconsistency in how MemoryBuffers are handled between some parts
Remove 'const' from MemoryBuffers used through the SourceManager
This removes a const_cast added in r211884 that occurred due to an inconsistency in how MemoryBuffers are handled between some parts of clang and LLVM.
MemoryBuffers are immutable and the general convention in the LLVM project is to omit const from immutable types as it's simply redundant/verbose (see llvm::Type, for example). While this change doesn't remove "const" from /every/ MemoryBuffer, it at least makes this chain of ownership/usage consistent.
llvm-svn: 211915
show more ...
|
#
8e650d7b |
| 12-Jun-2014 |
Rafael Espindola <rafael.espindola@gmail.com> |
Refer to error_code with the std prefix.
llvm-svn: 210817
|
#
c64b09ac |
| 22-May-2014 |
Daniel Jasper <djasper@google.com> |
clang-format: Introduce DisableFormat that prevents formatting.
And "none" pseudo-style indicating that formatting should be not applied.
(1) Using .clang-format with "DisableFormat: true" effectiv
clang-format: Introduce DisableFormat that prevents formatting.
And "none" pseudo-style indicating that formatting should be not applied.
(1) Using .clang-format with "DisableFormat: true" effectively prevents formatting for all files within the folder containing such .clang-format file.
(2) Using -fallback-style=none together with -style=file prevents formatting when .clang-format is not found, which can be used in on-save callback.
Patch by Adam Strzelecki. Thank you!
llvm-svn: 209446
show more ...
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1 |
|
#
e08a91ec |
| 08-May-2014 |
Nikola Smiljanic <popizdeh@gmail.com> |
Enable alternative tokens by default for clang-format.
Patch by Bobby Moretti.
llvm-svn: 208269
|
Revision tags: llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1 |
|
#
b8984329 |
| 07-Mar-2014 |
Ahmed Charles <ahmedcharles@gmail.com> |
Replace OwningPtr with std::unique_ptr.
This compiles cleanly with lldb/lld/clang-tools-extra/llvm.
llvm-svn: 203279
|
#
1eda305a |
| 26-Feb-2014 |
Alexander Kornienko <alexfh@google.com> |
Add newlines to fallback-style description. Patch by Kamal Essoufi\!
llvm-svn: 202269
|
#
3bb8fbfa |
| 05-Feb-2014 |
Alexander Kornienko <alexfh@google.com> |
Make the OptionCategory variable static.
llvm-svn: 200839
|
#
b00d66e6 |
| 07-Jan-2014 |
Nico Weber <nicolasweber@gmx.de> |
Shorten the output of `clang-format --version`, include revision number.
Before: $ clang-format --version LLVM (http://llvm.org/): LLVM version 3.5svn Optimized build with assertions.
Shorten the output of `clang-format --version`, include revision number.
Before: $ clang-format --version LLVM (http://llvm.org/): LLVM version 3.5svn Optimized build with assertions. Built Jan 3 2014 (14:28:46). Default target: x86_64-apple-darwin13.0.0 Host CPU: core-avx-i
Now: $ bin/clang-format --version clang-format version 3.5 (198452)
llvm-svn: 198694
show more ...
|
#
5553d0d4 |
| 07-Jan-2014 |
Chandler Carruth <chandlerc@gmail.com> |
Sort all the #include lines with LLVM's utils/sort_includes.py which encodes the canonical rules for LLVM's style. I noticed this had drifted quite a bit when cleaning up LLVM, so wanted to clean up
Sort all the #include lines with LLVM's utils/sort_includes.py which encodes the canonical rules for LLVM's style. I noticed this had drifted quite a bit when cleaning up LLVM, so wanted to clean up Clang as well.
llvm-svn: 198686
show more ...
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3 |
|
#
f54dcbc4 |
| 03-Dec-2013 |
Manuel Klimek <klimek@google.com> |
Preserve carriage return when using clang-format's XML interface.
Patch by James Park.
llvm-svn: 196265
|
Revision tags: llvmorg-3.4.0-rc2 |
|
#
bc4ae449 |
| 02-Dec-2013 |
Alexander Kornienko <alexfh@google.com> |
Added an option to specify fallback style.
Summary: Added -fallback-style option. Changed clang-format to stop searching for .clang-format when an invalid file is found.
Reviewers: djasper, klimek
Added an option to specify fallback style.
Summary: Added -fallback-style option. Changed clang-format to stop searching for .clang-format when an invalid file is found.
Reviewers: djasper, klimek
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2292
llvm-svn: 196108
show more ...
|
Revision tags: llvmorg-3.4.0-rc1 |
|
#
e94f74f6 |
| 09-Nov-2013 |
Bill Wendling <isanbard@gmail.com> |
Use a StringRef. Saves 0.00000000000001s on execution time.
llvm-svn: 194301
|
#
07ce1d02 |
| 08-Nov-2013 |
Alp Toker <alp@nuanti.com> |
clang-format: Write files atomically
Switch clang-format over to Rewriter::overwriteChangedFiles().
The previous implementation was attempting to stream back directly to the original file and faili
clang-format: Write files atomically
Switch clang-format over to Rewriter::overwriteChangedFiles().
The previous implementation was attempting to stream back directly to the original file and failing if it was already memory mapped by MemoryBuffer, an operation unsupported by Windows.
MemoryBuffer generally mmaps files larger than the physical page size so this will have been difficult to reproduce consistently.
This change also reduces flicker in code editors and IDEs on all platforms when reformatting in-place.
Note that other incorrect uses of MemoryBuffer exist in LLVM/clang and will need a similar fix.
A test should be added for Windows when libFormat performance issues are fixed (it takes longer than a day to format a 1MB file at present!)
llvm-svn: 194250
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 ...
|
#
8b03ef83 |
| 30-Sep-2013 |
David Blaikie <dblaikie@gmail.com> |
Remove unused variable introduced in 191666
llvm-svn: 191682
|
#
d544aa79 |
| 30-Sep-2013 |
Edwin Vane <edwin.vane@intel.com> |
Moving style option formatting to libFormat
The help text for clang-format's -style option and the function that processes its value is moved to libFormat in this patch. The goal is to enable other
Moving style option formatting to libFormat
The help text for clang-format's -style option and the function that processes its value is moved to libFormat in this patch. The goal is to enable other tools that use libFormat and also have a -style option to behave consistently with clang-format.
llvm-svn: 191666
show more ...
|
#
e488f5dd |
| 13-Sep-2013 |
Daniel Jasper <djasper@google.com> |
clang-format: Add -assume-filename option for editor integrations.
With -style=file, clang-format now starts to search for a .clang-format file starting at the file given with -assume-filename if it
clang-format: Add -assume-filename option for editor integrations.
With -style=file, clang-format now starts to search for a .clang-format file starting at the file given with -assume-filename if it reads from stdin. Otherwise, it would start searching from the current directory, which is not helpful for editor integrations.
Also changed vim, emacs and sublime integrations to actually make use of this flag.
This fixes llvm.org/PR17072.
llvm-svn: 190691
show more ...
|
#
9f6581bb |
| 10-Sep-2013 |
Hans Wennborg <hans@hanshq.net> |
Allow _clang-format as alternative to .clang-format config filename
Dotfiles are impractical on Windows. This makes clang-format search for the style configuration file as '_clang-format' in additio
Allow _clang-format as alternative to .clang-format config filename
Dotfiles are impractical on Windows. This makes clang-format search for the style configuration file as '_clang-format' in addition to the usual '.clang-format'. This is similar to how VIM searches for '_vimrc' on Windows.
Differential Revision: http://llvm-reviews.chandlerc.com/D1629
llvm-svn: 190413
show more ...
|
#
e3648fbe |
| 02-Sep-2013 |
Alexander Kornienko <alexfh@google.com> |
Added WebKit style to the BasedOnStyle handling and to the relevant help messages.
llvm-svn: 189765
|