Skip to content

Commit

Permalink
Document LookupScopeStatement EOG
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA committed Nov 5, 2024
1 parent 1090c53 commit 7bcd549
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,10 @@ open class EvaluationOrderGraphPass(ctx: TranslationContext) : TranslationUnitPa
handleContainedBreaksAndContinues(node)
}

// TODO: Documentation missing
/**
* See
* [Specification](https://fraunhofer-aisec.github.io/cpg/CPG/specs/eog/#lookupScopestatement)
*/
private fun handleLookupScopeStatement(stmt: LookupScopeStatement) {
// Include the node as part of the EOG itself, but we do not need to go into any children or
// properties here
Expand Down
13 changes: 10 additions & 3 deletions docs/docs/CPG/specs/eog.md
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,15 @@ flowchart LR
parent --EOG--> next:::outer
```

## LookupScopeStatement
The expression itself is connected to the outer EOG.

Interesting fields: /




Scheme:
```mermaid
flowchart LR
classDef outer fill:#fff,stroke:#ddd,stroke-dasharray:5 5;
prev:::outer --EOG--> parent["LookupScopeStatement"]
parent --EOG--> next:::outer
```

0 comments on commit 7bcd549

Please sign in to comment.