Skip to content

Commit 6bef140

Browse files
committed
Merge remote-tracking branch 'origin/codeql-cli-2.16.1' into henrymercer/2.16.0-mergeback
2 parents 51a65f9 + b24dad6 commit 6bef140

File tree

998 files changed

+31086
-13693
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

998 files changed

+31086
-13693
lines changed

.github/workflows/mad_modelDiff.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- main
1313
paths:
1414
- "java/ql/src/utils/modelgenerator/**/*.*"
15+
- "misc/scripts/models-as-data/*.*"
1516
- ".github/workflows/mad_modelDiff.yml"
1617

1718
permissions:
@@ -61,8 +62,9 @@ jobs:
6162
DATABASE=$2
6263
cd codeql-$QL_VARIANT
6364
SHORTNAME=`basename $DATABASE`
64-
python java/ql/src/utils/modelgenerator/GenerateFlowModel.py --with-summaries --with-sinks $DATABASE ${SHORTNAME}.temp.model.yml
65-
mv java/ql/lib/ext/generated/${SHORTNAME}.temp.model.yml $MODELS/${SHORTNAME}Generated_${QL_VARIANT}.model.yml
65+
python java/ql/src/utils/modelgenerator/GenerateFlowModel.py --with-summaries --with-sinks $DATABASE $SHORTNAME/$QL_VARIANT
66+
mkdir -p $MODELS/$SHORTNAME
67+
mv java/ql/lib/ext/generated/$SHORTNAME/$QL_VARIANT $MODELS/$SHORTNAME
6668
cd ..
6769
}
6870
@@ -85,16 +87,16 @@ jobs:
8587
set -x
8688
MODELS=`pwd`/tmp-models
8789
ls -1 tmp-models/
88-
for m in $MODELS/*_main.model.yml ; do
90+
for m in $MODELS/*/main/*.model.yml ; do
8991
t="${m/main/"pr"}"
9092
basename=`basename $m`
91-
name="diff_${basename/_main.model.yml/""}"
93+
name="diff_${basename/.model.yml/""}"
9294
(diff -w -u $m $t | diff2html -i stdin -F $MODELS/$name.html) || true
9395
done
9496
- uses: actions/upload-artifact@v3
9597
with:
9698
name: models
97-
path: tmp-models/*.model.yml
99+
path: tmp-models/**/**/*.model.yml
98100
retention-days: 20
99101
- uses: actions/upload-artifact@v3
100102
with:

config/identical-files.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,6 @@
473473
"ruby/ql/lib/codeql/ruby/frameworks/data/internal/ApiGraphModelsExtensions.qll",
474474
"python/ql/lib/semmle/python/frameworks/data/internal/ApiGraphModelsExtensions.qll"
475475
],
476-
"Typo database": [
477-
"javascript/ql/src/Expressions/TypoDatabase.qll",
478-
"ql/ql/src/codeql_ql/style/TypoDatabase.qll"
479-
],
480476
"Swift declarations test file": [
481477
"swift/ql/test/extractor-tests/declarations/declarations.swift",
482478
"swift/ql/test/library-tests/ast/declarations.swift"

cpp/downgrades/cf72c8898d19eb1b3374432cf79d8276cb07ad43/upgrade.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
description: Support C++17 if and switch initializers
22
compatibility: partial
3+
constexpr_if_initialization.rel: delete
34
if_initialization.rel: delete
45
switch_initialization.rel: delete
56
exprparents.rel: run exprparents.qlo

cpp/ql/lib/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 0.12.4
2+
3+
### Minor Analysis Improvements
4+
5+
* Deleted many deprecated predicates and classes with uppercase `XML`, `SSA`, `SAL`, `SQL`, etc. in their names. Use the PascalCased versions instead.
6+
* Deleted the deprecated `StrcatFunction` class, use `semmle.code.cpp.models.implementations.Strcat.qll` instead.
7+
18
## 0.12.3
29

310
### Deprecated APIs
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## 0.12.4
2+
3+
### Minor Analysis Improvements
4+
5+
* Deleted many deprecated predicates and classes with uppercase `XML`, `SSA`, `SAL`, `SQL`, etc. in their names. Use the PascalCased versions instead.
6+
* Deleted the deprecated `StrcatFunction` class, use `semmle.code.cpp.models.implementations.Strcat.qll` instead.

cpp/ql/lib/codeql-pack.release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lastReleaseVersion: 0.12.3
2+
lastReleaseVersion: 0.12.4

cpp/ql/lib/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: codeql/cpp-all
2-
version: 0.12.3
2+
version: 0.12.4
33
groups: cpp
44
dbscheme: semmlecode.cpp.dbscheme
55
extractor: cpp

cpp/ql/lib/semmle/code/cpp/Class.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,6 @@ class Class extends UserType {
380380
*/
381381
predicate isPod() { is_pod_class(underlyingElement(this)) }
382382

383-
/** DEPRECATED: Alias for isPod */
384-
deprecated predicate isPOD() { this.isPod() }
385-
386383
/**
387384
* Holds if this class, struct or union is a standard-layout class
388385
* [N4140 9(7)]. Also holds for structs in C programs.

cpp/ql/lib/semmle/code/cpp/PODType03.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ predicate isPodClass03(Class c) {
104104
)
105105
}
106106

107-
/** DEPRECATED: Alias for isPodClass03 */
108-
deprecated predicate isPODClass03 = isPodClass03/1;
109-
110107
/**
111108
* Holds if `t` is a POD type, according to the rules specified in
112109
* C++03 3.9(10):
@@ -126,6 +123,3 @@ predicate isPodType03(Type t) {
126123
isPodType03(ut.(SpecifiedType).getUnspecifiedType())
127124
)
128125
}
129-
130-
/** DEPRECATED: Alias for isPodType03 */
131-
deprecated predicate isPODType03 = isPodType03/1;

cpp/ql/lib/semmle/code/cpp/XML.qll

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ class XmlLocatable extends @xmllocatable, TXmlLocatable {
3232
string toString() { none() } // overridden in subclasses
3333
}
3434

35-
/** DEPRECATED: Alias for XmlLocatable */
36-
deprecated class XMLLocatable = XmlLocatable;
37-
3835
/**
3936
* An `XmlParent` is either an `XmlElement` or an `XmlFile`,
4037
* both of which can contain other elements.
@@ -95,9 +92,6 @@ class XmlParent extends @xmlparent {
9592
string toString() { result = this.getName() }
9693
}
9794

98-
/** DEPRECATED: Alias for XmlParent */
99-
deprecated class XMLParent = XmlParent;
100-
10195
/** An XML file. */
10296
class XmlFile extends XmlParent, File {
10397
XmlFile() { xmlEncoding(this, _) }
@@ -119,14 +113,8 @@ class XmlFile extends XmlParent, File {
119113

120114
/** Gets a DTD associated with this XML file. */
121115
XmlDtd getADtd() { xmlDTDs(result, _, _, _, this) }
122-
123-
/** DEPRECATED: Alias for getADtd */
124-
deprecated XmlDtd getADTD() { result = this.getADtd() }
125116
}
126117

127-
/** DEPRECATED: Alias for XmlFile */
128-
deprecated class XMLFile = XmlFile;
129-
130118
/**
131119
* An XML document type definition (DTD).
132120
*
@@ -163,9 +151,6 @@ class XmlDtd extends XmlLocatable, @xmldtd {
163151
}
164152
}
165153

166-
/** DEPRECATED: Alias for XmlDtd */
167-
deprecated class XMLDTD = XmlDtd;
168-
169154
/**
170155
* An XML element in an XML file.
171156
*
@@ -221,9 +206,6 @@ class XmlElement extends @xmlelement, XmlParent, XmlLocatable {
221206
override string toString() { result = this.getName() }
222207
}
223208

224-
/** DEPRECATED: Alias for XmlElement */
225-
deprecated class XMLElement = XmlElement;
226-
227209
/**
228210
* An attribute that occurs inside an XML element.
229211
*
@@ -254,9 +236,6 @@ class XmlAttribute extends @xmlattribute, XmlLocatable {
254236
override string toString() { result = this.getName() + "=" + this.getValue() }
255237
}
256238

257-
/** DEPRECATED: Alias for XmlAttribute */
258-
deprecated class XMLAttribute = XmlAttribute;
259-
260239
/**
261240
* A namespace used in an XML file.
262241
*
@@ -273,9 +252,6 @@ class XmlNamespace extends XmlLocatable, @xmlnamespace {
273252
/** Gets the URI of this namespace. */
274253
string getUri() { xmlNs(this, _, result, _) }
275254

276-
/** DEPRECATED: Alias for getUri */
277-
deprecated string getURI() { result = this.getUri() }
278-
279255
/** Holds if this namespace has no prefix. */
280256
predicate isDefault() { this.getPrefix() = "" }
281257

@@ -286,9 +262,6 @@ class XmlNamespace extends XmlLocatable, @xmlnamespace {
286262
}
287263
}
288264

289-
/** DEPRECATED: Alias for XmlNamespace */
290-
deprecated class XMLNamespace = XmlNamespace;
291-
292265
/**
293266
* A comment in an XML file.
294267
*
@@ -309,9 +282,6 @@ class XmlComment extends @xmlcomment, XmlLocatable {
309282
override string toString() { result = this.getText() }
310283
}
311284

312-
/** DEPRECATED: Alias for XmlComment */
313-
deprecated class XMLComment = XmlComment;
314-
315285
/**
316286
* A sequence of characters that occurs between opening and
317287
* closing tags of an XML element, excluding other elements.
@@ -335,6 +305,3 @@ class XmlCharacters extends @xmlcharacters, XmlLocatable {
335305
/** Gets a printable representation of this XML character sequence. */
336306
override string toString() { result = this.getCharacters() }
337307
}
338-
339-
/** DEPRECATED: Alias for XmlCharacters */
340-
deprecated class XMLCharacters = XmlCharacters;

0 commit comments

Comments
 (0)