GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Shared: Only make unlifted models in case the API itself is relevant. · github/codeql@80497f5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • csharp/ql/src/utils/modelgenerator/internal
    • CaptureModels.qll
  • java/ql/src/utils/modelgenerator/internal
    • CaptureModels.qll
  • shared/mad/codeql/mad/modelgenerator/internal
    • ModelGeneratorImpl.qll
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎csharp/ql/src/utils/modelgenerator/internal/CaptureModels.qll‎

Copy file name to clipboardExpand all lines: csharp/ql/src/utils/modelgenerator/internal/CaptureModels.qll
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ module ModelGeneratorInput implements ModelGeneratorInputSig<Location, CsharpDat
131131

132132
Callable lift() { result = lift }
133133

134-
predicate isRelevant() { relevant(this) }
134+
predicate isRelevant() {
135+
relevant(this) and
136+
not hasManualSummaryModel(this)
137+
}
135138
}
136139

137140
/**
Collapse file

‎java/ql/src/utils/modelgenerator/internal/CaptureModels.qll‎

Copy file name to clipboardExpand all lines: java/ql/src/utils/modelgenerator/internal/CaptureModels.qll
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ module ModelGeneratorInput implements ModelGeneratorInputSig<Location, JavaDataF
110110

111111
Callable lift() { result = lift }
112112

113-
predicate isRelevant() { relevant(this) }
113+
predicate isRelevant() {
114+
relevant(this) and
115+
not hasManualSummaryModel(this)
116+
}
114117
}
115118

116119
private string isExtensible(Callable c) {
Collapse file

‎shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll‎

Copy file name to clipboardExpand all lines: shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,11 @@ module MakeModelGenerator<
848848
input = parameterNodeAsContentInput(p) + printReadAccessPath(reads) and
849849
output = getContentOutput(returnNodeExt) + printStoreAccessPath(stores) and
850850
input != output and
851-
(if mentionsField(reads) or mentionsField(stores) then lift = false else lift = true)
851+
(
852+
if mentionsField(reads) or mentionsField(stores)
853+
then lift = false and api.isRelevant()
854+
else lift = true
855+
)
852856
)
853857
}
854858

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.