Skip to content

Update to CodeQL 2.10.1 #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c/cert/src/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion c/cert/src/qlpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ version: 2.6.0-dev
suites: codeql-suites
dependencies:
codeql/common-c-coding-standards: '*'
codeql/cpp-all: 0.2.3
codeql/cpp-all: 0.3.1
2 changes: 1 addition & 1 deletion c/cert/test/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion c/common/src/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion c/common/src/qlpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: codeql/common-c-coding-standards
version: 2.6.0-dev
dependencies:
codeql/common-cpp-coding-standards: '*'
codeql/cpp-all: 0.2.3
codeql/cpp-all: 0.3.1
2 changes: 1 addition & 1 deletion c/common/test/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion c/misra/src/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion c/misra/src/qlpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ version: 2.6.0-dev
suites: codeql-suites
dependencies:
codeql/common-c-coding-standards: '*'
codeql/cpp-all: 0.2.3
codeql/cpp-all: 0.3.1
2 changes: 1 addition & 1 deletion c/misra/test/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
6 changes: 6 additions & 0 deletions change_notes/2022-06-28-detect-static-namespace-members.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- `A2-10-4` - `IdentifierNameOfStaticFunctionReusedInNamespace.ql`:
- Reuse of an identifier name of a static function in a namespace is now detected.
- `A2-10-4` - `IdentifierNameOfStaticNonMemberObjectReusedInNamespace.ql`:
- Reuse of an identifier name of a static non-member object in a namespace is now detected.
- `A2-10-5` - `IdentifierNameOfStaticNonMemberObjectWithExternalOrInternalLinkageIsReused.ql`:
- Reuse of an identifier name of a static non-member object with internal linkage in a namespace is now detected.
2 changes: 1 addition & 1 deletion codeql_modules/codeql
Submodule codeql updated 2328 files
2 changes: 1 addition & 1 deletion cpp/autosar/src/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion cpp/autosar/src/qlpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ version: 2.6.0-dev
suites: codeql-suites
dependencies:
codeql/common-cpp-coding-standards: '*'
codeql/cpp-all: 0.2.3
codeql/cpp-all: 0.3.1
2 changes: 1 addition & 1 deletion cpp/autosar/test/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
| 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 |
| 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 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
| 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 |
| 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 |
5 changes: 2 additions & 3 deletions cpp/autosar/test/rules/A2-10-4/test1b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ static int v1 = 3; // NON_COMPLIANT
} // namespace ns1

namespace ns3 {
static void f1() {} // NON_COMPLIANT - Not accepted by Clang linker and
// therefore not alerted upon.
static void f1() {} // NON_COMPLIANT - Not accepted by Clang linker
void f2() {} // COMPLIANT - Not accepted by Clang linker
} // namespace ns3
} // namespace ns3
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
| 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 |
| 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 |
| 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 |
| 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 |
3 changes: 1 addition & 2 deletions cpp/autosar/test/rules/A2-10-5/test1b.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace n1 {
static int g1 = 1; // NON_COMPLIANT[FALSE_NEGATIVE], considered the same as
// n1::g1 in test1a.cpp.
static int g1 = 1; // NON_COMPLIANT
}

namespace n2 {
Expand Down
2 changes: 1 addition & 1 deletion cpp/cert/src/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion cpp/cert/src/qlpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: codeql/cert-cpp-coding-standards
version: 2.6.0-dev
suites: codeql-suites
dependencies:
codeql/cpp-all: 0.2.3
codeql/cpp-all: 0.3.1
codeql/common-cpp-coding-standards: '*'
2 changes: 1 addition & 1 deletion cpp/cert/test/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion cpp/common/src/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion cpp/common/src/qlpack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: codeql/common-cpp-coding-standards
version: 2.6.0-dev
dependencies:
codeql/cpp-all: 0.2.3
codeql/cpp-all: 0.3.1
2 changes: 1 addition & 1 deletion cpp/common/test/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion cpp/misra/src/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion cpp/misra/src/qlpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: codeql/misra-cpp-coding-standards
version: 2.6.0-dev
dependencies:
codeql/common-cpp-coding-standards: '*'
codeql/cpp-all: 0.2.3
codeql/cpp-all: 0.3.1
2 changes: 1 addition & 1 deletion cpp/misra/test/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion cpp/report/src/codeql-pack.lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dependencies:
codeql/cpp-all:
version: 0.2.3
version: 0.3.1
compiled: false
lockVersion: 1.0.0
2 changes: 1 addition & 1 deletion cpp/report/src/qlpack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: codeql/report-cpp-coding-standards
version: 2.6.0-dev
dependencies:
codeql/cpp-all: 0.2.3
codeql/cpp-all: 0.3.1
6 changes: 3 additions & 3 deletions supported_codeql_configs.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"supported_environment": [
{
"codeql_cli": "2.9.4",
"codeql_standard_library": "codeql-cli/v2.9.4",
"codeql_cli_bundle": "codeql-bundle-20220615"
"codeql_cli": "2.10.1",
"codeql_standard_library": "codeql-cli/v2.10.1",
"codeql_cli_bundle": "codeql-bundle-20220714"
}
],
"supported_language" : [
Expand Down