[all-commits] [llvm/llvm-project] 3ec6c7: [AST] Fix -Wlogical-op-parentheses in ExprConstant...
Jie Fu (傅杰) via All-commits
all-commits at lists.llvm.org
Sat Dec 9 03:15:01 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3ec6c72551846b8f4143c8c101a1a6203e85a2aa
https://github.com/llvm/llvm-project/commit/3ec6c72551846b8f4143c8c101a1a6203e85a2aa
Author: Jie Fu <jiefu at tencent.com>
Date: 2023-12-09 (Sat, 09 Dec 2023)
Changed paths:
M clang/lib/AST/ExprConstant.cpp
Log Message:
-----------
[AST] Fix -Wlogical-op-parentheses in ExprConstant.cpp (NFC)
llvm-project/clang/lib/AST/ExprConstant.cpp:5645:74: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
5645 | (Definition->isConstexpr() || Info.CurrentCall->CanEvalMSConstexpr &&
| ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
5646 | Definition->hasAttr<MSConstexprAttr>()))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
llvm-project/clang/lib/AST/ExprConstant.cpp:5645:74: note: place parentheses around the '&&' expression to silence this warning
5645 | (Definition->isConstexpr() || Info.CurrentCall->CanEvalMSConstexpr &&
| ^
| (
5646 | Definition->hasAttr<MSConstexprAttr>()))
|
| )
1 error generated.
More information about the All-commits
mailing list