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 the PXR_NS macro instead of pxr in the layer editor #998

Conversation

mattyjams
Copy link
Contributor

Just a small follow-up from the merge of the layer editor work from #988:

The PXR_NS macro should be used rather than hard-coding pxr as the namespace when referring to symbols in USD in case the core USD build is configured to use a different namespace (or in our case, no namespace with PXR_USE_NAMESPACES=0).

The macro should be used rather than hard-coding "pxr" as the namespace in case
the core USD build is configured to use a different namespace (or no namespace).
Comment on lines +46 to +47
void
updateFromSessionState(PXR_NS::UsdStageRefPtr const& stageToSelect = PXR_NS::UsdStageRefPtr());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

An unfortunate choice made by clang-format here. :(

Choose a reason for hiding this comment

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

We keep track of issues like this. If you have to know the configuration that would prevent this, please send it my way and I will put it in our internal wiki. Once we will be considering adopting clang-format v11, we will revisit configuration settings to consider tweaks for annoying parts people are finding.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @kxl-adsk! Looking at the current set of options, I think it might be IndentWrappedFunctionNames: 'false'? I haven't had a chance to build a newer version of clang-format to try it out though. Looks like it was known as IndentFunctionDeclarationAfterType for a while too: llvm/llvm-project@c75e1ef

@kxl-adsk kxl-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Dec 12, 2020
@kxl-adsk kxl-adsk merged commit 454e1a1 into Autodesk:dev Dec 15, 2020
@mattyjams mattyjams deleted the pr/replace_pxr_namespace_with_PXR_NS_in_layerEditor branch December 15, 2020 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants