Skip to content

Commit

Permalink
Fifth Query
Browse files Browse the repository at this point in the history
  • Loading branch information
uunoob committed Dec 29, 2020
1 parent 4ac544d commit 86d067e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 7_macro_invocations.ql
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
import cpp

// from Macro m, MacroAccess ma
// where m.getName().regexpMatch("ntoh.") and
// ma.getMacro().getName() in ["ntohs","ntohl","ntohll"]
// select m, ma

from MacroAccess ma
where
ma.getMacro().getName().regexpMatch("ntoh.+")
select ma

2 comments on commit 86d067e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 query changed between 4ac544d and 86d067e after push to refs/heads/step-7:

  • 7_macro_invocations.ql

Results for 7_macro_invocations.ql: correct (107 results)

@github-learning-lab
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulations, looks like the query you introduced for step 7 finds the correct results!

Merge this Pull Request (unless you're on main), and take a look at the instructions for the next step to continue.

Please sign in to comment.