[PATCH] D65127: Even more warnings utilizing gsl::Owner/gsl::Pointer annotations
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 29 11:37:09 PDT 2019
xazax.hun marked an inline comment as done.
xazax.hun added inline comments.
================
Comment at: clang/lib/Sema/SemaInit.cpp:6581
+ if (!Callee->getIdentifier()) {
+ auto OO = Callee->getOverloadedOperator();
+ return OO == OverloadedOperatorKind::OO_Subscript ||
----------------
If we want to relax the warnings to give more results we could extend the checking of these overloaded operators for annotated types. But this would imply that the user need to have the expected semantics for those types and can only suppress false positives by removing some gsl:::owner/poinnter annotations.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65127/new/
https://reviews.llvm.org/D65127
More information about the cfe-commits
mailing list