Skip to content

Commit 182adb1

Browse files
authored
Merge pull request #21 from jketema/bleeding-edge
Update to CodeQL 2.10.1
2 parents 6b7c906 + 5b6e9c2 commit 182adb1

32 files changed

+46
-36
lines changed

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.1
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
@@ -3,4 +3,4 @@ version: 2.6.0-dev
33
suites: codeql-suites
44
dependencies:
55
codeql/common-c-coding-standards: '*'
6-
codeql/cpp-all: 0.2.3
6+
codeql/cpp-all: 0.3.1

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.1
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.1
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
@@ -2,4 +2,4 @@ name: codeql/common-c-coding-standards
22
version: 2.6.0-dev
33
dependencies:
44
codeql/common-cpp-coding-standards: '*'
5-
codeql/cpp-all: 0.2.3
5+
codeql/cpp-all: 0.3.1

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.1
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.1
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
@@ -3,4 +3,4 @@ version: 2.6.0-dev
33
suites: codeql-suites
44
dependencies:
55
codeql/common-c-coding-standards: '*'
6-
codeql/cpp-all: 0.2.3
6+
codeql/cpp-all: 0.3.1

c/misra/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.1
55
compiled: false
66
lockVersion: 1.0.0
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- `A2-10-4` - `IdentifierNameOfStaticFunctionReusedInNamespace.ql`:
2+
- Reuse of an identifier name of a static function in a namespace is now detected.
3+
- `A2-10-4` - `IdentifierNameOfStaticNonMemberObjectReusedInNamespace.ql`:
4+
- Reuse of an identifier name of a static non-member object in a namespace is now detected.
5+
- `A2-10-5` - `IdentifierNameOfStaticNonMemberObjectWithExternalOrInternalLinkageIsReused.ql`:
6+
- Reuse of an identifier name of a static non-member object with internal linkage in a namespace is now detected.

codeql_modules/codeql

Submodule codeql updated 2328 files

cpp/autosar/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.1
55
compiled: false
66
lockVersion: 1.0.0

cpp/autosar/src/qlpack.yml

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

cpp/autosar/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.1
55
compiled: false
66
lockVersion: 1.0.0
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| test1a.cpp:13:13:13:14 | f1 | Static function $@ reuses identifier of $@ | test1a.cpp:13:13:13:14 | f1 | f1 | test1b.cpp:6:13:6:14 | f1 | f1 |
2+
| test1b.cpp:6:13:6:14 | f1 | Static function $@ reuses identifier of $@ | test1b.cpp:6:13:6:14 | f1 | f1 | test1a.cpp:13:13:13:14 | f1 | f1 |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| test1a.cpp:2:12:2:13 | v1 | Non-member static object $@ reuses identifier name of non-member static object $@ | test1a.cpp:2:12:2:13 | v1 | v1 | test1b.cpp:2:12:2:13 | v1 | v1 |
2+
| test1b.cpp:2:12:2:13 | v1 | Non-member static object $@ reuses identifier name of non-member static object $@ | test1b.cpp:2:12:2:13 | v1 | v1 | test1a.cpp:2:12:2:13 | v1 | v1 |

cpp/autosar/test/rules/A2-10-4/test1b.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ static int v1 = 3; // NON_COMPLIANT
33
} // namespace ns1
44

55
namespace ns3 {
6-
static void f1() {} // NON_COMPLIANT - Not accepted by Clang linker and
7-
// therefore not alerted upon.
6+
static void f1() {} // NON_COMPLIANT - Not accepted by Clang linker
87
void f2() {} // COMPLIANT - Not accepted by Clang linker
9-
} // namespace ns3
8+
} // namespace ns3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
| test1a.cpp:6:12:6:13 | g3 | Identifier name of non-member object $@ reuses the identifier name of non-member object $@. | test1a.cpp:6:12:6:13 | g3 | g3 | test1b.cpp:7:12:7:13 | g3 | g3 |
2-
| test1b.cpp:7:12:7:13 | g3 | Identifier name of non-member object $@ reuses the identifier name of non-member object $@. | test1b.cpp:7:12:7:13 | g3 | g3 | test1a.cpp:6:12:6:13 | g3 | g3 |
1+
| test1a.cpp:2:12:2:13 | g1 | Identifier name of non-member object $@ reuses the identifier name of non-member object $@. | test1a.cpp:2:12:2:13 | g1 | g1 | test1b.cpp:2:12:2:13 | g1 | g1 |
2+
| test1a.cpp:6:12:6:13 | g3 | Identifier name of non-member object $@ reuses the identifier name of non-member object $@. | test1a.cpp:6:12:6:13 | g3 | g3 | test1b.cpp:6:12:6:13 | g3 | g3 |
3+
| test1b.cpp:2:12:2:13 | g1 | Identifier name of non-member object $@ reuses the identifier name of non-member object $@. | test1b.cpp:2:12:2:13 | g1 | g1 | test1a.cpp:2:12:2:13 | g1 | g1 |
4+
| test1b.cpp:6:12:6:13 | g3 | Identifier name of non-member object $@ reuses the identifier name of non-member object $@. | test1b.cpp:6:12:6:13 | g3 | g3 | test1a.cpp:6:12:6:13 | g3 | g3 |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| test1a.cpp:7:13:7:14 | f1 | Identifier name of static function $@ reuses identifier name of static function $@ | test1a.cpp:7:13:7:14 | f1 | f1 | test1b.cpp:10:13:10:14 | f1 | f1 |
2-
| test1b.cpp:10:13:10:14 | f1 | Identifier name of static function $@ reuses identifier name of static function $@ | test1b.cpp:10:13:10:14 | f1 | f1 | test1a.cpp:7:13:7:14 | f1 | f1 |
1+
| test1a.cpp:7:13:7:14 | f1 | Identifier name of static function $@ reuses identifier name of static function $@ | test1a.cpp:7:13:7:14 | f1 | f1 | test1b.cpp:9:13:9:14 | f1 | f1 |
2+
| test1b.cpp:9:13:9:14 | f1 | Identifier name of static function $@ reuses identifier name of static function $@ | test1b.cpp:9:13:9:14 | f1 | f1 | test1a.cpp:7:13:7:14 | f1 | f1 |

cpp/autosar/test/rules/A2-10-5/test1b.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace n1 {
2-
static int g1 = 1; // NON_COMPLIANT[FALSE_NEGATIVE], considered the same as
3-
// n1::g1 in test1a.cpp.
2+
static int g1 = 1; // NON_COMPLIANT
43
}
54

65
namespace n2 {

cpp/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.1
55
compiled: false
66
lockVersion: 1.0.0

cpp/cert/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ name: codeql/cert-cpp-coding-standards
22
version: 2.6.0-dev
33
suites: codeql-suites
44
dependencies:
5-
codeql/cpp-all: 0.2.3
5+
codeql/cpp-all: 0.3.1
66
codeql/common-cpp-coding-standards: '*'

cpp/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.1
55
compiled: false
66
lockVersion: 1.0.0

cpp/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.1
55
compiled: false
66
lockVersion: 1.0.0

cpp/common/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: codeql/common-cpp-coding-standards
22
version: 2.6.0-dev
33
dependencies:
4-
codeql/cpp-all: 0.2.3
4+
codeql/cpp-all: 0.3.1

cpp/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.1
55
compiled: false
66
lockVersion: 1.0.0

cpp/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.1
55
compiled: false
66
lockVersion: 1.0.0

cpp/misra/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: codeql/misra-cpp-coding-standards
22
version: 2.6.0-dev
33
dependencies:
44
codeql/common-cpp-coding-standards: '*'
5-
codeql/cpp-all: 0.2.3
5+
codeql/cpp-all: 0.3.1

cpp/misra/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.1
55
compiled: false
66
lockVersion: 1.0.0

cpp/report/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.1
55
compiled: false
66
lockVersion: 1.0.0

cpp/report/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: codeql/report-cpp-coding-standards
22
version: 2.6.0-dev
33
dependencies:
4-
codeql/cpp-all: 0.2.3
4+
codeql/cpp-all: 0.3.1

supported_codeql_configs.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"supported_environment": [
33
{
4-
"codeql_cli": "2.9.4",
5-
"codeql_standard_library": "codeql-cli/v2.9.4",
6-
"codeql_cli_bundle": "codeql-bundle-20220615"
4+
"codeql_cli": "2.10.1",
5+
"codeql_standard_library": "codeql-cli/v2.10.1",
6+
"codeql_cli_bundle": "codeql-bundle-20220714"
77
}
88
],
99
"supported_language" : [

0 commit comments

Comments
 (0)