Skip to content

Restrict implicit casts from pointers to generic type variables to void* #347

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

Closed
jp1729 opened this issue Jul 20, 2017 · 1 comment
Closed

Comments

@jp1729
Copy link
Contributor

jp1729 commented Jul 20, 2017

Restrict implicit cast from pointers to generic type variables to void*. The purpose of generic type variables is to not lose information about types. Implicit casts to void* defeats the purpose.

@dtarditi dtarditi changed the title Restrict implicit cast from _Ptr<T> to void* Restrict implicit casts from pointers to generic type variables to void* Jul 22, 2017
@dtarditi
Copy link
Member

dtarditi commented Nov 7, 2018

Wer're planning to restrict casts to and from void pointers in checked scopes (issue #571). This seems like something that should be considered as part of implementing that. For unchecked scopes, there doesn't seem to be a good reason to treat casts between void * and pointer to generic type variables diffrently than other pointer cats. Closing this as redundant with issue #571.

@dtarditi dtarditi closed this as completed Nov 7, 2018
sulekhark pushed a commit that referenced this issue Feb 27, 2021
- Add -output-dir option to write updated files to a directory structure
  parallel to the base dir (#347). When -output-dir is used, a source
  file outside the base dir can't be handled because there is no way to
  compute its output path. For consistency, this is now an error even
  when -output-dir is not used.

- Convert all 3C regression tests from -output-postfix to -output-dir to
  avoid leaving temporary files in the clang/test/3C directory (#378).

- Expand "3c -help" documentation. In particular, direct the user to pass
  "--" when they don't want to use a compilation database to avoid
  accidentally using unwanted compiler options and suppress the warning
  if no compilation database is found (#343).

- For consistency, have stdout mode output the main file even if it is
  unchanged (#328).

- Fix bugs in matching of file paths against the base dir (#327).

- Other minor bug fixes: see the pull request description for details.

Co-authored-by: John Kastner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants