Skip to content

Commit 3b17207

Browse files
authored
Merge pull request #226 from github/mbaluda/updateql2.10.5
Upgrade github/codeql dependency to 2.10.5
2 parents 07a3b16 + bc0e02d commit 3b17207

Some content is hidden

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

44 files changed

+72
-69
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

c/cert/src/codeql-pack.lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
dependencies:
33
codeql/cpp-all:
4-
version: 0.2.3
4+
version: 0.3.5
55
compiled: false
66
lockVersion: 1.0.0

c/cert/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ suites: codeql-suites
55
license: MIT
66
dependencies:
77
codeql/common-c-coding-standards: '*'
8-
codeql/cpp-all: 0.2.3
8+
codeql/cpp-all: 0.3.5

c/cert/test/codeql-pack.lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
dependencies:
33
codeql/cpp-all:
4-
version: 0.2.3
4+
version: 0.3.5
55
compiled: false
66
lockVersion: 1.0.0

c/common/src/codeql-pack.lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
dependencies:
33
codeql/cpp-all:
4-
version: 0.2.3
4+
version: 0.3.5
55
compiled: false
66
lockVersion: 1.0.0

c/common/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ version: 2.15.0-dev
33
license: MIT
44
dependencies:
55
codeql/common-cpp-coding-standards: '*'
6-
codeql/cpp-all: 0.2.3
6+
codeql/cpp-all: 0.3.5

c/common/test/codeql-pack.lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
dependencies:
33
codeql/cpp-all:
4-
version: 0.2.3
4+
version: 0.3.5
55
compiled: false
66
lockVersion: 1.0.0

c/misra/src/codeql-pack.lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
dependencies:
33
codeql/cpp-all:
4-
version: 0.2.3
4+
version: 0.3.5
55
compiled: false
66
lockVersion: 1.0.0

c/misra/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ suites: codeql-suites
55
license: MIT
66
dependencies:
77
codeql/common-c-coding-standards: '*'
8-
codeql/cpp-all: 0.2.3
8+
codeql/cpp-all: 0.3.5

c/misra/src/rules/RULE-8-4/CompatibleDeclarationObjectDefined.ql

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,10 @@ where
2323
not isExcluded(decl1, Declarations4Package::compatibleDeclarationObjectDefinedQuery()) and
2424
decl1.isDefinition() and
2525
decl1.getDeclaration() instanceof ExternalIdentifiers and
26-
(
27-
//no declaration matches exactly
28-
not exists(VariableDeclarationEntry decl2 |
29-
not decl2.isDefinition() and decl2.getDeclaration() = decl1.getDeclaration()
30-
) and
31-
//and none is close enough
32-
not exists(VariableDeclarationEntry decl2 |
33-
not decl2.isDefinition() and
34-
decl1.getVariable().getQualifiedName() = decl2.getVariable().getQualifiedName() and
35-
typesCompatible(decl1.getType(), decl2.getType())
36-
)
26+
// no declaration matches
27+
not exists(VariableDeclarationEntry decl2 |
28+
not decl2.isDefinition() and
29+
decl1.getDeclaration() = decl2.getDeclaration() and
30+
typesCompatible(decl1.getType(), decl2.getType())
3731
)
3832
select decl1, "No separate compatible declaration found for this definition."

0 commit comments

Comments
 (0)