mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C++: invoke unique without | |
Based on PR feedback. This will avoid a syntactic wart and make the invocation do the right thing both with and without `language[monotonicAggregates]`.
This commit is contained in:
@@ -43,7 +43,7 @@ class Node extends TNode {
|
||||
/**
|
||||
* INTERNAL: Do not use. Alternative name for `getFunction`.
|
||||
*/
|
||||
final Function getEnclosingCallable() { result = unique( | | this.getFunction()) }
|
||||
final Function getEnclosingCallable() { result = unique(Function f | f = this.getFunction() | f) }
|
||||
|
||||
/** Gets the type of this node. */
|
||||
Type getType() { none() } // overridden in subclasses
|
||||
|
||||
Reference in New Issue
Block a user