Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
6f5bb2c93c31a7977382c5079d85db8ca3267cd0
/
unittests
/
Format
/
FormatTest.cpp
6f5bb2c
Make single-line if statements optional.
by Daniel Jasper
· 12 years ago
fd0ca97
Fix a bug in the line merging.
by Daniel Jasper
· 12 years ago
2b9c10b
Fix bug that would lead to joining preprocessor directives.
by Daniel Jasper
· 12 years ago
e0b15ea
Put simple preprocessor directives on a single line.
by Daniel Jasper
· 12 years ago
feb18f5
Put short if statements on a single line.
by Daniel Jasper
· 12 years ago
4abbb53
Improve understanding post increment and decrement.
by Daniel Jasper
· 12 years ago
a4ae9f3
Custom DiagnosticConsumer parameter of reformat() + silence diagnostics in unit tests.
by Alexander Kornienko
· 12 years ago
1b6f4bd
Adds some more tests for * and &.
by Manuel Klimek
· 12 years ago
efaddc0
Formatter: Add a test for bitfields.
by Nico Weber
· 12 years ago
487f64b
Stronger respect the input codes line breaks wrt. comments.
by Daniel Jasper
· 12 years ago
1774603
Format unions like structs and classes.
by Daniel Jasper
· 12 years ago
4e9008a
Always put a space after ",".
by Daniel Jasper
· 12 years ago
8134e1e
Don't put spaces around hyphens in include paths.
by Daniel Jasper
· 12 years ago
4981bd0
Improve identification of c-style casts.
by Daniel Jasper
· 12 years ago
cd45833
Formatter: Don't insert a space before unary operators after selector names.
by Nico Weber
· 12 years ago
6292dd4
Formatter: Add a test for @selector in an ObjC method expression, which happens to work already.
by Nico Weber
· 12 years ago
ea86563
Formatter: Remove debugging junk I accidentally landed in r172333.
by Nico Weber
· 12 years ago
e8ccc81
Formatter: Prefer breaking before ObjC selector names over breaking at their ':'
by Nico Weber
· 12 years ago
b312314
Fix incorrect comparison operator causing loooong formatting times.
by Daniel Jasper
· 12 years ago
774b973
Formatter: Remove a redundant CurrentLineType check.
by Nico Weber
· 12 years ago
bcfdd26
Formatter: Initial support for formatting Objective-C method expressions.
by Nico Weber
· 12 years ago
5e9f91c
Formatter: * and & are binary operators before ( and [.
by Nico Weber
· 12 years ago
2355ceb
Formatter: * and & are binary operators after ) and ].
by Nico Weber
· 12 years ago
cc191d1
Formatter: + and - after { are unary operators.
by Nico Weber
· 12 years ago
7d37b8b
Formatter: add a test for :? in []
by Nico Weber
· 12 years ago
67015ed
Formatter: Format ObjC static and instance methods consistently, add a test for that.
by Nico Weber
· 12 years ago
6eca03f
Fix crashes in UnwrappedLineParser on missing parens.
by Manuel Klimek
· 12 years ago
d5688cf
Fix single-line optimization for ObjC.
by Manuel Klimek
· 12 years ago
d465843
Fix crash on invalid.
by Manuel Klimek
· 12 years ago
606e07e
Fix parsing of initializer lists with elaborated type specifier.
by Manuel Klimek
· 12 years ago
517e894
Implements pulling simple blocks into a single line.
by Manuel Klimek
· 12 years ago
088dab5
Correct spacing around new and delete.
by Daniel Jasper
· 12 years ago
7d19bc2
Improve handling of trailing declaration annotations.
by Daniel Jasper
· 12 years ago
7e9bf8c
Improved formatting of constructor initializers
by Daniel Jasper
· 12 years ago
8e2999c
Formatter: Remove a fixme, Jordy says @synthesize is good as is.
by Nico Weber
· 12 years ago
cd52bda
Formatter: Put spaces in ObjC method decls in the right place for Google style.
by Nico Weber
· 12 years ago
7084823
Formatter: No spaces around '=' in @property lines.
by Nico Weber
· 12 years ago
e0fd429
Formatter: Add test for template and protocol parameters in ObjC method declarations.
by Nico Weber
· 12 years ago
5f500df
Formatting: In @implementation etc lines, put a space before protocol lists.
by Nico Weber
· 12 years ago
81ed2f1
Formatter: Don't put a space in ObjC number literals like @+50
by Nico Weber
· 12 years ago
ed91bba
Formatter: Add space before '(' in @implemenation, @interface, @protocol lines
by Nico Weber
· 12 years ago
c8c8a47
Fixes layout of right braces.
by Manuel Klimek
· 12 years ago
2851c16
Fixes formatting of function calls etc inside an initializer list.
by Manuel Klimek
· 12 years ago
36fab8d
Do not add newline in empty blocks.
by Manuel Klimek
· 12 years ago
46ef852
Improvements to function type and ObjC block formatting.
by Daniel Jasper
· 12 years ago
bb42bf1
Fix layout of blocks inside statements.
by Manuel Klimek
· 12 years ago
5cf7cf3
Improve clang-format's understanding of casts.
by Daniel Jasper
· 12 years ago
700e710
Do more error checking for '{}'.
by Daniel Jasper
· 12 years ago
880e538
Formatter: Remove unused @-formatting code.
by Nico Weber
· 12 years ago
b530fa3
Formatter: @optional and @required go on their own line.
by Nico Weber
· 12 years ago
50767d8
Formatter: Add support for @implementation.
by Nico Weber
· 12 years ago
049c447
Formatter: Make parseObjCUntilAtEnd() actually work.
by Nico Weber
· 12 years ago
1abe6ea
Formatting: Add support for @protocol.
by Nico Weber
· 12 years ago
27d1367
Formatter: Add support for @interface.
by Nico Weber
· 12 years ago
526ed11
Enables layouting unwrapped lines around preprocessor directives.
by Manuel Klimek
· 12 years ago
3fc0bb7
Only align after assignments on the top level.
by Daniel Jasper
· 12 years ago
ceb99ab
Don't simply give up when exceeding 80cols, choose an "ok" option.
by Daniel Jasper
· 12 years ago
d64f738
Correctly format wrapped function call parameters in templated functions.
by Daniel Jasper
· 12 years ago
043835a
Allow comments in the middle of statements to be on their own line.
by Daniel Jasper
· 12 years ago
886568d
Fix ObjC block declarations.
by Daniel Jasper
· 12 years ago
9c837d0
Improve formatting of conditional operators.
by Daniel Jasper
· 12 years ago
3a2673e
Formatter: More tests for already-passing ObjC bits.
by Nico Weber
· 12 years ago
2db356d
Don't break after unary operators.
by Daniel Jasper
· 12 years ago
cb4d690
Formatter: Format @ literals better. Array and dictionary literals need more work.
by Nico Weber
· 12 years ago
c31689a
Formatter: More ObjC tests.
by Nico Weber
· 12 years ago
cf4a79c
Formatter: Add tests for some ObjC bits that happen to be formatted correctly.
by Nico Weber
· 12 years ago
765561f
Don't put spaces around ##.
by Daniel Jasper
· 12 years ago
26f7e78
Change the data structure used in clang-format.
by Daniel Jasper
· 12 years ago
6092d4e
Formatter: Support @public/@protected/@package/@private.
by Nico Weber
· 12 years ago
de76854
Fix parsing of variable declarations directly after a class / struct.
by Manuel Klimek
· 12 years ago
a9ccdd1
Formatter: Add tests for try/catch. Let 'throw' start an expression.
by Nico Weber
· 12 years ago
d0af4b4
Formatter: Don't put spaces betwen @ and objc keywords.
by Nico Weber
· 12 years ago
4a293a2
Test all @keywords. Turns out some of them are not formatted correctly yet.
by Nico Weber
· 12 years ago
581f557
Slightly expand the @ test to cover whitespace between @ and keyword.
by Nico Weber
· 12 years ago
efcfe73
Add a test that checks that the formatter doesn't discard '@' with ObjC1 set.
by Nico Weber
· 12 years ago
cd16238
Reformat clang-formats source code.
by Daniel Jasper
· 12 years ago
9cda800
Prefer not to break after assignments.
by Daniel Jasper
· 12 years ago
7ad4eff
Add style option for number of spaces before trailing comments.
by Daniel Jasper
· 12 years ago
7160751
Do not break before "0" in pure virtual function declarations.
by Daniel Jasper
· 12 years ago
dd5b101
Fix incorrect FIXME.
by Manuel Klimek
· 12 years ago
d544c57
Do not ever allow using the full line in preprocessor directives.
by Manuel Klimek
· 12 years ago
6cf5814
Fix layouting of single-line-comments preceded by an escaped newline.
by Manuel Klimek
· 12 years ago
9541938
Fix layouting of tokens with a leading escaped newline.
by Manuel Klimek
· 12 years ago
46a46a2
Put a higher penalty on breaking before "." or "->".
by Daniel Jasper
· 12 years ago
a5342db
Fixes handling of unbalances braces.
by Manuel Klimek
· 12 years ago
f6fd00b
Fixes parsing of hash tokens in the middle of a line.
by Manuel Klimek
· 12 years ago
c37b4d6
Fixes PR14801 - preprocessor directives shouldn't be indented
by Manuel Klimek
· 12 years ago
6f8424b
Fixes PR14811: Crash when formatting some macros
by Manuel Klimek
· 12 years ago
d4397b9
Various fixes to clang-format's macro handling.
by Manuel Klimek
· 12 years ago
9bb0d28
Correctly format dereference and address of in array parameters.
by Daniel Jasper
· 12 years ago
1f42f11
Let the formatter ignore UnwrappedLines containing errors.
by Daniel Jasper
· 12 years ago
060143e
Fixes multiple formatting bugs.
by Manuel Klimek
· 12 years ago
5eda31e
Don't allow line breaks after template parameters.
by Daniel Jasper
· 12 years ago
ba3d307
Format */& as binary operator if followed by a unary operator.
by Daniel Jasper
· 12 years ago
a080a18
Fixes use of unescaped newlines when formatting preprocessor directives.
by Manuel Klimek
· 12 years ago
ef5b9c3
Correctly format pointers and references in casts.
by Daniel Jasper
· 12 years ago
1f0754b
Understand unary operators after "return" and "case".
by Daniel Jasper
· 12 years ago
9a64fb5
Prefer splitting after "template <...>" and fix indentation.
by Daniel Jasper
· 12 years ago
723f030
Prefer to break after operators over breaking after "(".
by Daniel Jasper
· 12 years ago
5d33440
Understand * and & in ternary expressions.
by Daniel Jasper
· 12 years ago
Next »