-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[LLVM][CodingStandard] Extend namespace qualifier rule to variables/classes #163588
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
Conversation
Extend CS rule to use namespace qialifiers to define previously declared functions to variables as well.
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.
I think we might as well generalize this over all declarations, rather than specifying only functions and variables (we shouldn't have many variables declared in headers anyway, but similarly, might have a small number of opaque classes declared in headers too)
Note that this specific section is not about requiring declarations in headers but about using namespace qualifiers in definitions. Are you suggesting that it can be used/should be used for opaque classes like |
Done, added example of an opaque class and changed the language to be more general. |
6ce2fb3
to
d6ad844
Compare
d6ad844
to
d8c19ec
Compare
Thanks, I'll wait for other folks to chime in as well before merging. |
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.
Seems reasonable to me.
@nikic will wait for you approval as well before merging. |
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.
LGTM
Extend CS rule to use namespace qualifiers to define previously declared functions to variables and classes as well.