Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d490bea commit 4f23c35Copy full SHA for 4f23c35
2 files changed
cpp/ql/src/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll
@@ -658,14 +658,18 @@ newtype TTranslatedElement =
658
t instanceof ReferenceType
659
) and
660
(
661
- isWrite = true or
+ isWrite = true and
662
+ not call.getTarget().getParameter(n).getType().isDeeplyConstBelow()
663
+ or
664
isWrite = false
665
)
666
or
667
not call.getTarget() instanceof SideEffectFunction and
668
n = -1 and
669
670
671
+ not call.getTarget() instanceof ConstMemberFunction
672
673
674
675
0 commit comments