Skip to content

Commit

Permalink
Changing the selected output
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffyLapter committed Dec 21, 2021
1 parent 18a1ae6 commit 453c243
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 7_macro_invocations.ql
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import cpp
from MacroInvocation maci
where maci.getMacro().getName().regexpMatch("ntoh(s|l|ll)")
select maci

//搜索宏定义的调用
6 changes: 5 additions & 1 deletion 8_macro_expressions.ql
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@

import cpp
from MacroInvocation maci
where maci.getMacro().getName().regexpMatch("ntoh(s|l|ll)")
select maci.getExpr()
//搜索宏定义的调用

2 comments on commit 453c243

@github-actions
Copy link

Choose a reason for hiding this comment

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

2 queries changed between 4511dfe and 453c243 after push to refs/heads/step-8:

  • 7_macro_invocations.ql
  • 8_macro_expressions.ql

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

Results for 8_macro_expressions.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 8 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.