Skip to content

Commit

Permalink
Use cxx1.DeclFamilyOf instead of inlining it
Browse files Browse the repository at this point in the history
Summary: We have a predicate for this decl family expansion. Use it.

Reviewed By: nhawkes

Differential Revision: D39301620

fbshipit-source-id: 017fc5dd3c6eeb5b26a917ae0e48072f6b1ed328
  • Loading branch information
donsbot authored and facebook-github-bot committed Sep 12, 2022
1 parent cca4671 commit ca7fe00
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions glean/schema/source/code.cxx.angle
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,7 @@ predicate DeclToDef :
}
{Decl, Def}
where
FamDecl = Decl |
(
D where
cxx1.DeclToFamily{decl = Decl, family = DF};
DF = cxx1.DeclFamily F;
D = F[..]
);
cxx1.DeclFamilyOf { Decl, FamDecl };
Def =
(
Definition{record_ = { declaration = DD} }
Expand Down

0 comments on commit ca7fe00

Please sign in to comment.