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
chore: Fully specify include paths for sessiond #12496
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
e089f07
to
0200932
Compare
418803c
to
36558be
Compare
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.
As it seems that IWYU is working for session_manager now (it is?) - could we turn up CI automation for IWYU for this sub-directory?
#include <glog/logging.h> | ||
#include <grpcpp/channel.h> | ||
#include <grpcpp/impl/codegen/status.h> | ||
#include <feg/gateway/services/aaa/protos/accounting.grpc.pb.h> |
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.
Not looking to have you change your PR, but I'm wondering why these went to <>
from ""
? In the include fixup script I'm working on, I intended for repo-generated protos to use quotes (#12441).
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.
ooo didn't realize. IWYU seems to default to <>, so I standardized on that. I don't have a preference either way as long as there is tooling around it to automate it :D
#include <cpp_redis/core/client.hpp> | ||
#include <cpp_redis/core/reply.hpp> | ||
#include <cpp_redis/misc/error.hpp> | ||
#include <folly/Range.h> |
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.
Can we fix these include ordering linter errors.
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.
The include ordering in this PR was done by the IWYU script and since there is no automated way of appeasing cpplint right now, I would like to ignore these cpplint warnings for now. The hope is to eventually have an include sorting script that handles this (see #12441).
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.
Ok Marie! Then its fine.
I have below minor comments.
Except above ordering / formatting issues, Changes Looks Good To Me! |
Thanks @GANESH-WAVELABS ! Those points all sound reasonable, but I think it will be much easier to address them once we have a script that can automate those fixes. I believe @electronjoe is working on this right now :) As for protobuf includes, I was hoping that the formatting script would eventually handle modifying '<' to '"' as well. But if that is not the case, I can modify those in this PR. |
Thanks Marie!! PR LGTM. |
Signed-off-by: GitHub <noreply@github.com>
d44b39e
to
476b05f
Compare
Signed-off-by: GitHub <noreply@github.com>
Summary
This change was partially automated (by using Scott's full path refactoring script mentioned in #9961).
The changes are:
dev_tools/apply-iwyu.sh lte/gateway/c/session_manager
in the devcontainerOfficially closes #8494 (the stale PR bot closed this already but we can officially resolve it)
Test Plan
CI (which includes build and unit test checks)
Next change
We will then rename all header files from .h to .hpp to better differentiate between C and C++ header files. This was already done by @electronjoe for the rest of C/C++ codebase.
Additional Information