Skip to content

Commit

Permalink
style: revert some changes
Browse files Browse the repository at this point in the history
Signed-off-by: Valentyn Yukhymenko <[email protected]>
  • Loading branch information
BaLiKfromUA committed May 30, 2024
1 parent 99e6528 commit 44b62f0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions clang/lib/Parse/ParseDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6766,11 +6766,10 @@ void Parser::ParseDeclaratorInternal(Declarator &D,

// Complain about rvalue references in C++03, but then go on and build
// the declarator.
if (Kind == tok::ampamp) {
Diag(Loc, getLangOpts().CPlusPlus11
? diag::warn_cxx98_compat_rvalue_reference
: diag::ext_rvalue_reference);
}
if (Kind == tok::ampamp)
Diag(Loc, getLangOpts().CPlusPlus11 ?
diag::warn_cxx98_compat_rvalue_reference :
diag::ext_rvalue_reference);

// GNU-style and C++11 attributes are allowed here, as is restrict.
ParseTypeQualifierListOpt(DS);
Expand Down

0 comments on commit 44b62f0

Please sign in to comment.