-
Notifications
You must be signed in to change notification settings - Fork 202
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
Apply clang-format #886
Apply clang-format #886
Conversation
} | ||
#endif | ||
|
||
#endif // UFE_V2_FEATURES_AVAILABLE | ||
|
||
} // namespace ufe | ||
} // namespace MayaUsd | ||
} // namespace MAYAUSD_NS_DEF |
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.
This is a shame. The macro name is really not useful here.
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.
Clang-format auto-generates this comment and currently, we are giving it a macro. Something that may be newer versions of clang-format will handle better.
#include <QtCore/QSortFilterProxyModel> | ||
#include <QtWidgets/QTreeView> |
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.
It seems like these should be part of group 6 and thus be moved to line 25?
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.
Good catch. This is because we don't recognize mayaUsdUI in https://github.com/Autodesk/maya-usd/blob/dev/.clang-format#L56. I will fix this and create a new PR.
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.
PR opened for it #888
Time to start leveraging clang-format in maya-usd. Below are updated instructions from #843
Instructions for applying clang-format to an outstanding branch / PR
These instructions assume that:
$MAYA_USD_REPO
points to the root directory of a checkout of the maya-usd source repository$COMMIT_BEFORE_FORMAT
points at the commit in the dev branch immediately before clang-format is applied (this is 5cfeb1b)$FORMAT_COMMIT
points at the commit in the dev branch where clang-format was applied (this is 6bd514d)$FORMAT_BRANCH
points at the head of the branch, containing any commits after$FORMAT_COMMIT
(dev branch)$YOUR_BRANCH
is the name of the branch which does not have clang-format applied, but want to merge dev (with clang-format) intoDownload and install clang-tools 10.0 (generally included as part of llvm):
Make sure a modern version of cmake, and python-3, are both on your path, then:
Merge + apply clang-format to your branch (these instructions assume Linux, you may need to adapt to other OSes):