summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
Commit message (Collapse)AuthorAgeFilesLines
...
* Indentation fixes for clang-format.Daniel Jasper2012-12-052-30/+51
| | | | | | | | | | - Fix behavior of memoization together with optimization - Correctly attribute the PenaltyIndentLevel (breaking directly after "(" did not count towards the inner level) - Recognize more tokens as assignments Review: http://llvm-reviews.chandlerc.com/D172 llvm-svn: 169384
* Follow-up to r169286, addresses comments in ↵Alexander Kornienko2012-12-053-6/+8
| | | | | | http://llvm-reviews.chandlerc.com/D164#comment-4 : comments and a method rename llvm-svn: 169382
* Small tweaks to automatic formatting.Daniel Jasper2012-12-051-2/+13
| | | | | | | Recognize '!=' as a binary operator and assume that there are no type definitions on the RHS of an assignment. llvm-svn: 169363
* Add missing destructors found with -Wnon-virtual-dtor.Daniel Jasper2012-12-042-0/+5
| | | | llvm-svn: 169303
* Error recovery part 2Alexander Kornienko2012-12-043-32/+52
| | | | | | | | | | | | | | Summary: Adds recovery for structural errors in clang-format. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, silvas Differential Revision: http://llvm-reviews.chandlerc.com/D164 llvm-svn: 169286
* Clang-format error recovery part 1Alexander Kornienko2012-12-041-2/+10
| | | | | | | | | | Reviewers: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D163 llvm-svn: 169278
* Make parenthesis counting and aligning a bit saner.Daniel Jasper2012-12-041-40/+53
| | | | | Review: http://llvm-reviews.chandlerc.com/D162 llvm-svn: 169274
* Enum formatting implementationAlexander Kornienko2012-12-041-27/+53
| | | | | | | | | | | | Reviewers: djasper, klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D161 llvm-svn: 169272
* Small fixes to unary operator recognition and handling of includeDaniel Jasper2012-12-041-6/+20
| | | | | | directives. llvm-svn: 169261
* Replace workarounds with correct fixes.Daniel Jasper2012-12-041-16/+16
| | | | | | | | Also fix header guard. http://llvm-reviews.chandlerc.com/D159 llvm-svn: 169254
* Sort all of Clang's files under 'lib', and fix up the broken headersChandler Carruth2012-12-043-6/+3
| | | | | | | | | | | | | uncovered. This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/utils/sort_includes.py script over the files. I also manually added quite a few missing headers that were uncovered by shuffling the order or moving headers up to be main-module-headers. llvm-svn: 169237
* Fixes a compile warning and crash in the tests.Manuel Klimek2012-12-031-12/+13
| | | | | | | | The necessity of this fix points to a problem with the design of the addToken during the optimiation phase, which we need to address in a much more principled way. llvm-svn: 169151
* libclangFormat is not libclangTooling, but it depends on it.Benjamin Kramer2012-12-032-2/+3
| | | | llvm-svn: 169139
* Initial version of formatting library.Daniel Jasper2012-12-035-0/+1201
This formatting library will be used by a stand-alone clang-format tool and can also be used when writing other refactorings. Manuel's original design document: https://docs.google.com/a/google.com/document/d/1gpckL2U_6QuU9YW2L1ABsc4Fcogn5UngKk7fE5dDOoA/edit The library can already successfully format itself. Review: http://llvm-reviews.chandlerc.com/D80 llvm-svn: 169137
OpenPOWER on IntegriCloud