Closed
Bug 1340144
Opened 8 years ago
Closed 8 years ago
[clang-format] Incorrect alignment of the function declaration when using template
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Developer Infrastructure
Source Code Analysis
Tracking
(firefox54 affected)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox54 | --- | affected |
People
(Reporter: Sylvestre, Assigned: andi)
References
Details
template<typename T> // Templates on own line.
static int // Return type on own line for top-level functions.
MyFunction(int a)
is converted by clang-format to
template<typename T> // Templates on own line.
static int // Return type on own line for top-level functions.
MyFunction(int a)
which is incorrect
cf https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Methods
Assignee | ||
Comment 1•8 years ago
|
||
though a comment on this topic, this bug appears only when we have a comment on the return type declaration line.
Reporter | ||
Comment 2•8 years ago
|
||
moved upstream
https://bugs.llvm.org/show_bug.cgi?id=32016
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 3•8 years ago
|
||
No need to close it actually
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Assignee | ||
Comment 4•8 years ago
|
||
A patch for this issue has been submitted to upstream: https://reviews.llvm.org/D30646
Assignee: nobody → bpostelnicu
Assignee | ||
Comment 5•8 years ago
|
||
This has been fixed upstream: https://reviews.llvm.org/rL285178
Assignee | ||
Updated•8 years ago
|
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•