[clang] [clang][CodeComplete] Handle deref operator in getApproximateType (PR #86466)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 25 04:19:30 PDT 2024
================
@@ -5674,6 +5675,11 @@ QualType getApproximateType(const Expr *E) {
return getApproximateType(VD->getInit());
}
}
+ if (const auto *UO = llvm::dyn_cast<UnaryOperator>(E)) {
+ if (UO->getOpcode() == UnaryOperatorKind::UO_Deref) {
----------------
zyn0217 wrote:
nit: We [don't](https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements) usually wrap a single statement with braces.
https://github.com/llvm/llvm-project/pull/86466
More information about the cfe-commits
mailing list