Skip to content

Introduce CodeQL for C++#340

Draft
4og wants to merge 4 commits into
mainfrom
codeql_intergation
Draft

Introduce CodeQL for C++#340
4og wants to merge 4 commits into
mainfrom
codeql_intergation

Conversation

@4og

@4og 4og commented Jul 3, 2026

Copy link
Copy Markdown
Member

Testing only, not to be merged

Implementation is taken from https://github.com/eclipse-score/communication

Resolves #317

@github-project-automation github-project-automation Bot moved this to In Progress in BAS - Baselibs FT Jul 3, 2026
@4og 4og marked this pull request as draft July 3, 2026 16:46
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@4og 4og force-pushed the codeql_intergation branch from cdddde4 to be3fdac Compare July 3, 2026 17:07
MyBitmask abc{MyBitmask::a ^ MyBitmask::b};
EXPECT_EQ(static_cast<UnderlyingType>(abc), 3);
abc = abc ^ MyBitmask::b;
EXPECT_EQ(static_cast<UnderlyingType>(abc), 1);
MyBitmask abc{MyBitmask::a ^ MyBitmask::b};
EXPECT_EQ(static_cast<UnderlyingType>(abc), 3);
abc = abc ^ MyBitmask::b;
EXPECT_EQ(static_cast<UnderlyingType>(abc), 1);
bitmask = bitmask ^ MyBitmask::b;
EXPECT_EQ(static_cast<UnderlyingType>(bitmask), 1);
MyBitmask abc{MyBitmask::a ^ MyBitmask::b};
EXPECT_EQ(static_cast<UnderlyingType>(abc), 3);
bitmask = bitmask ^ MyBitmask::b;
EXPECT_EQ(static_cast<UnderlyingType>(bitmask), 1);
MyBitmask abc{MyBitmask::a ^ MyBitmask::b};
EXPECT_EQ(static_cast<UnderlyingType>(abc), 3);
constexpr Byte value1{std::uint16_t{4u}};

EXPECT_THAT(value, Eq(4u));
EXPECT_THAT(value1, Eq(4u));
constexpr Byte value1{std::uint8_t{4u}};

EXPECT_THAT(value, Eq(4u));
EXPECT_THAT(value1, Eq(4u));
constexpr Byte value1{std::uint16_t{4u}};

EXPECT_THAT(value, Eq(4u));
EXPECT_THAT(value1, Eq(4u));
bitmask = bitmask ^ MyBitmask::b;
EXPECT_EQ(static_cast<UnderlyingType>(bitmask), 1);
MyBitmask abc{MyBitmask::a ^ MyBitmask::b};
EXPECT_EQ(static_cast<UnderlyingType>(abc), 3);
constexpr HalfByte value1{std::uint8_t{4u}};

EXPECT_THAT(value, Eq(4u));
EXPECT_THAT(value1, Eq(4u));
MyBitmask abc{MyBitmask::a ^ MyBitmask::b};
EXPECT_EQ(static_cast<UnderlyingType>(abc), 3);
abc = abc ^ MyBitmask::b;
EXPECT_EQ(static_cast<UnderlyingType>(abc), 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Evaluate CodeQL static analysis in baselibs for C++ code

2 participants