Skip to content

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Aug 6, 2018

Summary:
Remove forwarding declaration in caffe2/core/common.h

codemod -d caffe2 --extensions cc,cpp,cu,cuh,h \\bDISABLE_COPY_AND_ASSIGN AT_DISABLE_COPY_AND_ASSIGN

Differential Revision: D9184809

ezyang added 5 commits August 6, 2018 13:52
Differential Revision: D9157408

fbshipit-source-id: b88537159fa590be7893d8ebacbd657ba4c0a647
…/core

Summary:
Auxiliary changes that were needed:
- Add DISABLE_COPY_AND_ASSIGN to CoreAPI.h (maybe we should rename this file
  now)

Differential Revision: D9181321

fbshipit-source-id: 977d47cb7632dfc41461bf6f6dbdab532f3aea51
Summary:
Since we now have DISABLE_COPY_AND_ASSIGN macro in the file,
CoreAPI is no longer an accurate name.

Differential Revision: D9181687

fbshipit-source-id: b4594a8987f45eeb3ad8b8bdeeeb537e5c8e4e7f
Summary:
Good C++ libraries don't take up un-namespaced identifiers
like DISABLE_COPY_AND_ASSIGN.  Re-prefix this.

Follow up fix: codemod Caffe2 to use the new macro, delete
the forwarding definition

Differential Revision: D9181939

fbshipit-source-id: 79ce403b842072bcae814c4bf610197d15a26d4e
Summary:
Remove forwarding declaration in caffe2/core/common.h

```
codemod -d caffe2 --extensions cc,cpp,cu,cuh,h \\bDISABLE_COPY_AND_ASSIGN AT_DISABLE_COPY_AND_ASSIGN
```

Differential Revision: D9184809

fbshipit-source-id: 7d2b086b4555beffc91efeebaad685e41ed2070b
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Aug 10, 2018
Summary:
Pull Request resolved: pytorch#10275

Remove forwarding declaration in caffe2/core/common.h

```
codemod -d caffe2 --extensions cc,cpp,cu,cuh,h \\bDISABLE_COPY_AND_ASSIGN AT_DISABLE_COPY_AND_ASSIGN
```

Reviewed By: mingzhe09088

Differential Revision: D9184809

fbshipit-source-id: 958cf5162b0d92b83ea9c2597abb77320ca57ce8
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Pull Request resolved: pytorch#10275

Remove forwarding declaration in caffe2/core/common.h

```
codemod -d caffe2 --extensions cc,cpp,cu,cuh,h \\bDISABLE_COPY_AND_ASSIGN AT_DISABLE_COPY_AND_ASSIGN
```

Reviewed By: mingzhe09088

Differential Revision: D9184809

fbshipit-source-id: 958cf5162b0d92b83ea9c2597abb77320ca57ce8
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant