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

Use namespaced math functions #39553

Merged
merged 5 commits into from
Apr 14, 2020

Conversation

kevingranade
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Use the C++ style math functions in the std namespace.

Testing

It should be fine as long as it builds and lgtm says it closes a bunch of warnings.

@kevingranade kevingranade requested a review from KorGgenT as a code owner April 14, 2020 07:56
src/line.cpp Outdated Show resolved Hide resolved
src/line.cpp Outdated Show resolved Hide resolved
@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Apr 14, 2020
src/tileray.cpp Outdated Show resolved Hide resolved
src/tileray.cpp Outdated Show resolved Hide resolved
src/sdl_utils.h Outdated Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented Apr 14, 2020

This pull request fixes 91 alerts when merging aaf0ff7 into a015c70 - view on LGTM.com

fixed alerts:

  • 91 for Use of c-style math functions

@kevingranade
Copy link
Member Author

Only 91? Well crap there's definitely something wrong. It looks like lgtm isn't counting abs() or sqrt(), and maybe some others.

@kevingranade
Copy link
Member Author

My guess is that these might actually be macros, which is annoying because AFAICT that means lgtm can't do checks based on their presence.

@ZhilkinSerg ZhilkinSerg merged commit 7867cd8 into CleverRaven:master Apr 14, 2020
@kevingranade kevingranade deleted the namespaced-math branch June 28, 2020 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants