Skip to content

Naming style2#7733

Merged
maliberty merged 13 commits intoThe-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:naming-style2
Jul 7, 2025
Merged

Naming style2#7733
maliberty merged 13 commits intoThe-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:naming-style2

Conversation

@openroad-ci
Copy link
Copy Markdown
Collaborator

No description provided.

maliberty added 13 commits July 6, 2025 15:47
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
… master)

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>
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a 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

unsigned short successBroadcast
JobMessage result(JobMessage::kSuccess);
std::string msg_str;
unsigned short success_broadcast
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: consider replacing 'unsigned short' with 'uint16_t' [google-runtime-int]

        unsigned short success_broadcast
        ^

}
std::string split;
while (getNextMsg(resultStr, JobMessage::EOP, split)) {
while (getNextMsg(result_str, JobMessage::kEop, split)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 1st argument 'result_str' (passed to 'haystack') looks like it might be swapped with the 3rd, 'split' (passed to 'result') [readability-suspicious-call-argument]

    while (getNextMsg(result_str, JobMessage::kEop, split)) {
           ^
Additional context

src/dst/src/Distributed.cc:170: in the call to 'getNextMsg', declared here

inline bool getNextMsg(std::string& haystack,
            ^

unsigned short priority;
worker(ip::address ipIn, unsigned short portIn, unsigned short priorityIn)
: ip(ipIn), port(portIn), priority(priorityIn)
Worker(ip::address ip, unsigned short port, unsigned short priority)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: consider replacing 'unsigned short' with 'uint16_t' [google-runtime-int]

    Worker(ip::address ip, unsigned short port, unsigned short priority)
                                                ^

worker(ip::address ipIn, unsigned short portIn, unsigned short priorityIn)
: ip(ipIn), port(portIn), priority(priorityIn)
Worker(ip::address ip, unsigned short port, unsigned short priority)
: ip(ip), port(port), priority(priority)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'ip' is passed by value and only copied once; consider moving it to avoid unnecessary copies [performance-unnecessary-value-param]

src/dst/src/LoadBalancer.h:13:

- #include <vector>
+ #include <utility>
+ #include <vector>
Suggested change
: ip(ip), port(port), priority(priority)
: ip(std::move(ip)), port(port), priority(priority)

Comment thread src/gui/include/gui/gui.h
kDots
};
virtual void setBrush(const Color& color, const Brush& style = SOLID) = 0;
virtual void setBrush(const Color& color, const Brush& style = kSolid) = 0;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: default arguments on virtual or override methods are prohibited [google-default-arguments]

  virtual void setBrush(const Color& color, const Brush& style = kSolid) = 0;
               ^

Comment thread src/gui/src/painter.h
}

void setBrush(const Color& color, const Brush& style = Brush::SOLID) override
void setBrush(const Color& color, const Brush& style = Brush::kSolid) override
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: default arguments on virtual or override methods are prohibited [google-default-arguments]

  void setBrush(const Color& color, const Brush& style = Brush::kSolid) override
       ^

@maliberty maliberty merged commit 23d8380 into The-OpenROAD-Project:master Jul 7, 2025
10 of 11 checks passed
@maliberty maliberty deleted the naming-style2 branch July 7, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants