Skip to content
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

Using std cleanup #CI-only #10602

Closed
wants to merge 2 commits into from
Closed

Conversation

deeglaze
Copy link
Contributor

@deeglaze deeglaze commented Jan 9, 2025

Description

Pccts has decades-old coding style that modern compilers have warnings for. This PR removes "using namespace std;" in headers and removes the defensive coding around a 20 year old Microsoft compiler for C header file names.

Conditional compilation directives are removed since all build configurations defined PCCTS_USE_NAMESPACE_STD.

Google's internal linter pointed out these problems and in an effort to reduce the diff from upstream, here you go :)

  • Breaking change?
  • Impacts security?
  • Includes tests?

How This Was Tested

Builds without warnings.

Integration Instructions

Ignore the rude comments that I did not delete.

Also drop some trailing whitespace.

Signed-off-by: Dionna Glaze <[email protected]>
C++ does not support C's register keyword.

Signed-off-by: Dionna Glaze <[email protected]>
@deeglaze deeglaze changed the title Use std Using std cleanup Jan 9, 2025
@deeglaze deeglaze changed the title Using std cleanup Using std cleanup #CI-only Jan 9, 2025
@deeglaze deeglaze closed this Jan 9, 2025
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.

1 participant