[clang] [clang] Support `__is_trivially_copyable(int()&)==false` (PR #81298)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 22 01:33:25 PST 2024
================
@@ -3899,7 +3899,9 @@ ExprResult Parser::ParseTypeTrait() {
SmallVector<ParsedType, 2> Args;
do {
// Parse the next type.
- TypeResult Ty = ParseTypeName();
+ TypeResult Ty = ParseTypeName(nullptr, getLangOpts().CPlusPlus
----------------
cor3ntin wrote:
```suggestion
TypeResult Ty = ParseTypeName(/*SourceRange=*/nullptr, getLangOpts().CPlusPlus
```
https://github.com/llvm/llvm-project/pull/81298
More information about the cfe-commits
mailing list