From 368f4387547fffa351686b2b72613bf2b5b4908d Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Thu, 14 Dec 2023 14:49:48 +0000 Subject: [PATCH] C++: Add more QLDoc. --- .../lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll b/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll index fa8e617c8de..4e8acfe8187 100644 --- a/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll +++ b/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll @@ -2288,6 +2288,10 @@ private module ContentStars { result = "*" + repeatStars(n - 1) } + /** + * Gets the number of stars (i.e., `*`s) needed to produce the `toString` + * output for `c`. + */ string contentStars(Content c) { result = repeatStars(c.getIndirectionIndex() - 1) } }