[PATCH] D88088: [clang] improve accuracy of ExprMutAnalyzer
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 9 04:16:49 PDT 2020
JonasToth marked an inline comment as done.
JonasToth added inline comments.
================
Comment at: clang/lib/Analysis/ExprMutationAnalyzer.cpp:61
+ // below.
+ auto const ConditionalOperator = conditionalOperator(anyOf(
+ hasTrueExpression(ignoringParens(canResolveToExpr(InnerMatcher))),
----------------
aaron.ballman wrote:
> Do you also want to handle the binary conditional operator (a GNU extension like `a ? : b`)?
Yup, was a fast improvement. Thanks for pointing that out :+1:
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88088/new/
https://reviews.llvm.org/D88088
More information about the cfe-commits
mailing list