Skip to content

Commit

Permalink
remove anonymous structs (#79)
Browse files Browse the repository at this point in the history
Signed-off-by: Jordy Zomer <[email protected]>
  • Loading branch information
JordyZomer authored Jan 22, 2024
1 parent 69b5e32 commit d2c9bc4
Show file tree
Hide file tree
Showing 2 changed files with 645,008 additions and 230,074 deletions.
4 changes: 3 additions & 1 deletion analysis/kernel/util/Fields.ql
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ boolean isInteresting(Field f) {

// Returns all the parent struct of all fields, their name, their type, their offset and if they could be interesting
from Field f, Struct s
where s.getAField() = f
where
s.getAField() = f and
not s.isAnonymous()
select s.getName(), f.getName(), f.getType().toString(), f.getByteOffset(), isInteresting(f)
Loading

0 comments on commit d2c9bc4

Please sign in to comment.