Skip to content

Commit 2cdb227

Browse files
committed
Try remove MacroUnwrapper
1 parent a15423e commit 2cdb227

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/common/src/codingstandards/cpp/rules/misuseofinfinitefloatingpointvalue/MisuseOfInfiniteFloatingPointValue.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ query predicate problems(
114114
) {
115115
not isExcluded(elem, getQuery()) and
116116
exists(InvalidInfinityUsage usage, string computedInFunction |
117-
elem = MacroUnwrapper<Expr>::unwrapElement(sink.getNode().asExpr()) and
117+
elem = sink.getNode().asExpr() and
118118
not InvalidInfinityFlow::PathGraph::edges(_, source, _, _) and
119119
not InvalidInfinityFlow::PathGraph::edges(sink, _, _, _) and
120120
not sourceExpr.isFromTemplateInstantiation(_) and

cpp/common/src/codingstandards/cpp/rules/misuseofnanfloatingpointvalue/MisuseOfNaNFloatingPointValue.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ query predicate problems(
184184
not InvalidNaNFlow::PathGraph::edges(sink, _, _, _) and
185185
not sourceExpr.isFromTemplateInstantiation(_) and
186186
not usage.asExpr().isFromTemplateInstantiation(_) and
187-
elem = MacroUnwrapper<Expr>::unwrapElement(sink.getNode().asExpr()) and
187+
elem = sink.getNode().asExpr() and
188188
usage = sink.getNode() and
189189
sourceExpr = source.getNode().asExpr() and
190190
sourceString = source.getNode().asExpr().(PotentiallyNaNExpr).getReason() and

0 commit comments

Comments
 (0)