-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rcx grid #6807
Rcx grid #6807
Conversation
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There were too many comments to post at once. Showing the first 25 out of 58. Check the log or trigger a new build to see more.
@@ -419,7 +419,7 @@ class extMeasureRC : public extMeasure | |||
int metUnder, | |||
const char* prefix = ""); | |||
void GetOUname(char buf[20], int met, int metOver, int metUnder); | |||
void PrintCrossOvelaps(Ath__wire* w, | |||
void PrintCrossOvelaps(Wire* w, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'rcx::extMeasureRC::PrintCrossOvelaps' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void PrintCrossOvelaps(Wire* w,
^
Additional context
src/rcx/src/extmeasure_print.cpp:106: the definition seen here
void extMeasureRC::PrintCrossOvelaps(Wire* w,
^
src/rcx/include/rcx/extMeasureRC.h:421: differing parameters are named here: ('x2'), in definition: ('len')
void PrintCrossOvelaps(Wire* w,
^
@@ -991,19 +991,19 @@ | |||
// void PrintCrossSeg(FILE *fp, int x1, int x2, int met, int metOver, int | |||
// metUnder, const char *prefix=""); | |||
// void GetOUname(char buf[20], int met, int metOver, int metUnder); | |||
bool GetCrossOvelaps(Ath__wire* w, | |||
bool GetCrossOvelaps(Wire* w, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'rcx::extMeasureRC::GetCrossOvelaps' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
bool GetCrossOvelaps(Wire* w,
^
Additional context
src/rcx/src/extmeasure_couple.cpp:1128: the definition seen here
bool extMeasureRC::GetCrossOvelaps(Wire* w,
^
src/rcx/include/rcx/extMeasureRC.h:993: differing parameters are named here: ('x2'), in definition: ('len')
bool GetCrossOvelaps(Wire* w,
^
src/rcx/include/rcx/grids.h
Outdated
uint getDir(); | ||
uint getLevel(); | ||
uint getDir() const; | ||
uint getLevel() const; | ||
void setDir(int v = -1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'rcx::SearchBox::setDir' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
void setDir(int v = -1);
^
Additional context
src/rcx/src/grids.cpp:202: the definition seen here
void SearchBox::setDir(int dir)
^
src/rcx/include/rcx/grids.h:83: differing parameters are named here: ('v'), in definition: ('dir')
void setDir(int v = -1);
^
Wire* makeWire(int* ll, int* ur, uint id, uint* m1); | ||
Wire* makeWire(uint dir, int* ll, int* ur, uint id1, uint id2, uint type = 0); | ||
|
||
Wire* makeWire(Wire* w, uint type = 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'rcx::Grid::makeWire' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
Wire* makeWire(Wire* w, uint type = 0);
^
Additional context
src/rcx/src/grids.cpp:1626: the definition seen here
Wire* Grid::makeWire(Wire* v, uint type)
^
src/rcx/include/rcx/grids.h:394: differing parameters are named here: ('w'), in definition: ('v')
Wire* makeWire(Wire* w, uint type = 0);
^
void releaseWire(uint wireId); | ||
Ath__box* maxSearchBox() { return &_maxSearchBox; }; | ||
Box* maxSearchBox() { return &_maxSearchBox; }; | ||
int xMin(); | ||
int xMax(); | ||
int yMin(); | ||
int yMax(); | ||
uint getRowNum(int x); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'rcx::GridTable::getRowNum' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
uint getRowNum(int x);
^
Additional context
src/rcx/src/grids.cpp:2408: the definition seen here
uint GridTable::getRowNum(int y)
^
src/rcx/include/rcx/grids.h:561: differing parameters are named here: ('x'), in definition: ('y')
uint getRowNum(int x);
^
if (next_track == NULL) | ||
return NULL; | ||
|
||
Ath__wire* first_wire = NULL; | ||
Wire* first_wire = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use nullptr [modernize-use-nullptr]
Wire* first_wire = NULL; | |
Wire* first_wire = nullptr; |
if (track == NULL) | ||
continue; | ||
|
||
fprintf(fp, "Track %d M%d %s %d \n", tr, jj, vert, track->getBase()); | ||
for (Ath__wire* w = track->getNextWire(NULL); w != NULL; | ||
w = w->getNext()) { | ||
for (Wire* w = track->getNextWire(NULL); w != NULL; w = w->getNext()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use nullptr [modernize-use-nullptr]
for (Wire* w = track->getNextWire(NULL); w != NULL; w = w->getNext()) { | |
for (Wire* w = track->getNextWire(NULL); w != nullptr; w = w->getNext()) { |
if (track == NULL) | ||
continue; | ||
|
||
fprintf(fp, "Track %d M%d %s %d \n", tr, jj, vert, track->getBase()); | ||
for (Ath__wire* w = track->getNextWire(NULL); w != NULL; | ||
w = w->getNext()) { | ||
for (Wire* w = track->getNextWire(NULL); w != NULL; w = w->getNext()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use nullptr [modernize-use-nullptr]
for (Wire* w = track->getNextWire(NULL); w != NULL; w = w->getNext()) { | |
for (Wire* w = track->getNextWire(nullptr); w != NULL; w = w->getNext()) { |
uint ii = track->getGrid()->searchLowMarker(); | ||
int first_marker_index = -1; | ||
for (; ii <= track->getGrid()->searchHiMarker(); ii++) { | ||
for (Ath__wire* w = track->getMarker(ii); w != NULL; w = w->getNext()) { | ||
for (Wire* w = track->getMarker(ii); w != NULL; w = w->getNext()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use nullptr [modernize-use-nullptr]
for (Wire* w = track->getMarker(ii); w != NULL; w = w->getNext()) { | |
for (Wire* w = track->getMarker(ii); w != nullptr; w = w->getNext()) { |
w->setNext(w1); | ||
} | ||
} | ||
bool swap = false; | ||
if (tbl.getCnt() <= 1) | ||
return false; | ||
for (uint ii = 0; ii < tbl.getCnt() - 1; ii++) { | ||
Ath__wire* prev = NULL; | ||
Wire* prev = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use nullptr [modernize-use-nullptr]
Wire* prev = NULL; | |
Wire* prev = nullptr; |
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
No description provided.