[libcxx-commits] [libcxx] Avoid using `__shifted` as an identifier (PR #82248)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 26 07:51:23 PST 2024
ldionne wrote:
It seems to me like this compiler extension could be a bit smarter and realize that `__shifted` without any parenthesis can't be their keyword. I don't think it makes sense to try to fix this in libc++. Generally speaking, it makes sense to try to fix these kinds of issues when they are widespread (e.g. incompatibility with a well known Windows header) and when fixing them otherwise is very difficult or impossible. However, we don't want to create a precedent for working around the use of reserved identifiers in arbitrary projects (Clang forks or other), since that clearly doesn't work in the long term.
https://github.com/llvm/llvm-project/pull/82248
More information about the libcxx-commits
mailing list