Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang] Use CPlusPlus language option instead of Bool (#80975)
As it was pointed out in #80724, we should not be checking `getLangOpts().Bool` when determining something related to logical operators, since it only indicates that bool keyword is present, not which semantic logical operators have. As a side effect a missing `-Wpointer-bool-conversion` in OpenCL C was restored since like C23, OpenCL C has bool keyword but logical operators still return int.
- Loading branch information