We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5ea6960 + bf99a0e commit 01ce344Copy full SHA for 01ce344
cpp/ql/src/semmle/code/cpp/Macro.qll
@@ -188,9 +188,12 @@ class MacroInvocation extends MacroAccess {
188
}
189
190
/**
191
- * Gets the top-level expression associated with this macro invocation,
+ * Gets a top-level expression associated with this macro invocation,
192
* if any. Note that this predicate will fail if the top-level expanded
193
* element is not an expression (for example if it is a statement).
194
+ *
195
+ * This macro is intended to be used with macros that expand to a complete
196
+ * expression. In other cases, it may have multiple results or no results.
197
*/
198
Expr getExpr() {
199
result = getAnExpandedElement() and
0 commit comments