-
Notifications
You must be signed in to change notification settings - Fork 1.9k
C++ overlay: Discarding elements #21281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| description: Add trap_filename, source_file_uses_trap and in_trap relations | ||
| compatibility: full | ||
| trap_filename.rel: delete | ||
| source_file_uses_trap.rel: delete | ||
| in_trap.rel: delete |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -236,6 +236,34 @@ extractor_version( | |
| string frontend_version: string ref | ||
| ) | ||
|
|
||
| /** | ||
| * Gives the TRAP filename that `trap` is associated with. | ||
| * For debugging only. | ||
| */ | ||
| trap_filename( | ||
| int trap: @trap, | ||
| string filename: string ref | ||
| ); | ||
|
Comment on lines
+243
to
+246
|
||
|
|
||
| /** | ||
| * In `build-mode: none` overlay mode, indicates that `source_file` | ||
| * (`/path/to/foo.c`) uses the TRAP file `trap_file`; i.e. it is the | ||
| * TRAP file corresponding to `foo.c`, something it transitively | ||
| * includes, or a template instantiation it transitively uses. | ||
| */ | ||
| source_file_uses_trap( | ||
| string source_file: string ref, | ||
| int trap_file: @trap ref | ||
| ); | ||
|
|
||
| /** | ||
| * Holds if there is a definition of `element` in TRAP file `trap_file`. | ||
| */ | ||
| in_trap( | ||
| int element: @element ref, | ||
| int trap_file: @trap ref | ||
| ); | ||
|
|
||
| pch_uses( | ||
| int pch: @pch ref, | ||
| int compilation: @compilation ref, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type
@trapis used in the new relations but is never defined in the schema. Database schema types must be defined before they can be referenced. You should add a definition for@trap, similar to how@pch,@compilation, and other types are defined. This could be either a primitive type definition or a union type definition depending on what@traprepresents.