Closed
Bug 1246619
Opened 8 years ago
Closed 8 years ago
NSS clang-format: lib/freebl
Categories
(NSS :: Libraries, defect)
NSS
Libraries
Tracking
(firefox47 affected)
RESOLVED
FIXED
3.27
Tracking | Status | |
---|---|---|
firefox47 | --- | affected |
People
(Reporter: franziskus, Assigned: franziskus)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
3.29 MB,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
1.05 KB,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
Applying clang-format to lib/freebl.
Assignee | ||
Comment 1•8 years ago
|
||
clang-format on lib/freebl. patch is also at https://codereview.appspot.com/290100043 this is a big one. And for some reason clang-format did many strange line breaks. I tried to fix them but not sure if I spotted all. The patch also contains some clang-format protections. There was other code with special formatting, but I preferred the new format.
Flags: needinfo?(kaie)
Assignee | ||
Updated•8 years ago
|
Attachment #8716923 -
Attachment is obsolete: true
Flags: needinfo?(kaie)
Comment 2•8 years ago
|
||
It would be nice to make progress on this one.
Assignee | ||
Comment 3•8 years ago
|
||
so this is a big one again. There was quite some custom formatting in here (a lot of the algorithms), but nothing I found worthy of keeping.
Attachment #8785241 -
Flags: review?(kaie)
Assignee | ||
Comment 4•8 years ago
|
||
this patch enables clang-format on freebl on TC CI
Attachment #8785242 -
Flags: review?(kaie)
Updated•8 years ago
|
Attachment #8785242 -
Flags: review?(kaie) → review+
Assignee | ||
Comment 5•8 years ago
|
||
Comparison of freebl libs shows they're identical with and without the patch.
Comment 6•8 years ago
|
||
Comment on attachment 8785241 [details] [diff] [review] freebl-cf.patch The only unexpected change I saw, clang-format replaces tabs with spaces inside of strings! In two places, it's done for the usage string of the ecp_test/ecperf tools. I think we don't need to worry about the small change of the help/usage output this change will cause. In one place it replaced the string given to an __asm("...") statement. __asm("bswap{tab}%0....); I seems that doesn't change the resulting, so it's ok with me. r=kaie
Attachment #8785241 -
Flags: review?(kaie) → review+
Updated•8 years ago
|
Target Milestone: --- → 3.27
Assignee | ||
Comment 7•8 years ago
|
||
(In reply to Kai Engert (:kaie) from comment #6) > Comment on attachment 8785241 [details] [diff] [review] > freebl-cf.patch > > The only unexpected change I saw, clang-format replaces tabs with spaces > inside of strings! > > In two places, it's done for the usage string of the ecp_test/ecperf tools. > I think we don't need to worry about the small change of the help/usage > output this change will cause. > > In one place it replaced the string given to an __asm("...") statement. > __asm("bswap{tab}%0....); > > I seems that doesn't change the resulting, so it's ok with me. > > r=kaie Thanks Kai! right, the changes in __asm don't change anything and there aren't actually any output strings that are used (ecp_test is dead code).
Assignee | ||
Comment 8•8 years ago
|
||
https://hg.mozilla.org/projects/nss/rev/d96445d2f8fd https://hg.mozilla.org/projects/nss/rev/d36a5c822591
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•