Commit Graph

16 Commits

Author SHA1 Message Date
Mike Hommey
9331b9fb07 Bug 1851529 - Set clang-format ColumnLimit consistently. r=sylvestre,necko-reviewers,kershaw
For some reason, its value in the Google style we use is 80... except
for Objective-C, where it's 100, which led to things like:
https://hg.mozilla.org/mozilla-central/rev/31bf68247e6e
https://hg.mozilla.org/mozilla-central/rev/64ceb33533a4.

There's probably a discussion to have about whether 80 is the right
limit, but since it's what's used for everything except ObjC, let's roll
with it.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D187409
2023-09-05 11:23:01 +00:00
Sylvestre Ledru
130a9e0fde Bug 1547143 - Force the pointer style declaration r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D28954

--HG--
extra : moz-landing-system : lando
2019-05-01 08:46:08 +00:00
Sylvestre Ledru
5d41aca733 Bug 1542146 - Use the new option StatementMacros from clang-format-8 r=andi
Differential Revision: https://phabricator.services.mozilla.com/D26279

--HG--
extra : moz-landing-system : lando
2019-04-05 21:41:57 +00:00
Ehsan Akhgari
e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Cameron McCormack
1db3f9da78 Bug 1512716 - Re-indent NS_QUERYFRAME macros after clang-format. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D13995

--HG--
extra : moz-landing-system : lando
2018-12-07 20:00:18 +00:00
Andrew McCreight
81ca4b1113 Bug 1508818, part 1 - Add some missing things to the clang-format macro list. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13182

--HG--
extra : moz-landing-system : lando
2018-11-28 07:38:12 +00:00
Ted Campbell
518cff2972 Bug 1508255 - Merge js/src/.clang-format into top-level r=sylvestre
The style options now match, so remove js/src/.clang-format \o/

Depends on D12391

Differential Revision: https://phabricator.services.mozilla.com/D12392

--HG--
extra : moz-landing-system : lando
2018-11-20 12:42:30 +00:00
Sylvestre Ledru
1e099ba528 Bug 1508128 - Update our coding style config files r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D12221

--HG--
extra : moz-landing-system : lando
2018-11-19 15:55:00 +00:00
Andi-Bogdan Postelnicu
7b5dd9b14f Bug 1414764 - Remove Mozilla specific options to avoid build warnings with gcc and -Wcomment enabled. r=sylvestre
MozReview-Commit-ID: C8CqfB5KDeU

--HG--
extra : rebase_source : 8c616cd09cdfe4864c5775d15e953f39da10be80
2017-11-06 11:47:40 +02:00
Sylvestre Ledru
fddd013fcd Bug 1413609 - Remove Mozilla specific options as they have been merged upstream r=andi
MozReview-Commit-ID: EUF8lobk4n3

--HG--
extra : rebase_source : 0b13930e7f96db6fe73bdc714af3b225f3713f2e
2017-11-06 10:06:31 +01:00
Sylvestre Ledru
227c2090a1 Bug 1399359 - Enable clang-format option SplitEmptyFunction to have empty constructor correctly placed r=andi,jya
MozReview-Commit-ID: 9tRSMN89iuM

--HG--
extra : rebase_source : 888feddcd4705ee6fa779294f3982cd02b15be74
2017-09-13 08:39:43 +02:00
Andrew McCreight
78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Sylvestre Ledru
398a43804b Bug 1322321 - Update the clang format file to match more our coding style r=ehsan
MozReview-Commit-ID: AU7HlaOFQm4

--HG--
extra : rebase_source : 685ebaa447dec0c2a47df1a27e3c46d172bc5b61
2016-12-06 17:43:17 -10:00
Sylvestre Ledru
b018550c9e Bug 1317305 - Update clang format rules r=mystor
MozReview-Commit-ID: IrFlfS6QrM4

--HG--
extra : rebase_source : 7aab2d8bb62f2fb24e705743718faa517737beac
2016-11-14 18:01:36 +01:00
Birunthan Mohanathas
7cf721d3c5 Bug 961541 - Make Clang-Format ignore all comments. r=mystor
DONTBUILD
2015-06-26 12:38:44 -07:00
Anthony Jones
a4c0bcf9b0 Bug 965120 - Use .clang-format to set tree default format; r=gps 2014-01-30 14:27:44 +13:00