Skip to content

feat(cpp): add CppCheck and CppSymbol engine types#402

Open
Divyateja2709 wants to merge 7 commits intocbomkit:mainfrom
Divyateja2709:pr3
Open

feat(cpp): add CppCheck and CppSymbol engine types#402
Divyateja2709 wants to merge 7 commits intocbomkit:mainfrom
Divyateja2709:pr3

Conversation

@Divyateja2709
Copy link
Copy Markdown

hi @n1ckl0sk0rtge

This PR adds the first C/C++ language-specific engine types required for upcoming C/C++ support in the Sonar Cryptography Plugin.

Changes Included

  • Added CppCheck.java as the marker interface for C/C++ detection rules
  • Added CppSymbol.java as a lightweight symbol representation for C/C++ source identifiers
  • Added support for optional statically resolved symbol values

Purpose

The detection engine uses language-specific generic types for each supported language. These classes prepare the C/C++ support layer by introducing:

  • CppCheck for the rule/check generic type
  • CppSymbol for the symbol generic type

Because the planned C/C++ support is parser-based and does not yet include a full semantic model, CppSymbol intentionally keeps symbol handling lightweight.

This prepares future work on:

  • C/C++ AST tree types
  • C/C++ language translation
  • C/C++ detection engine integration
  • OpenSSL API detection rules

Signed-off-by: Divyateja Indrakanti <indrakantidivyateja@gmail.com>
Signed-off-by: Divyateja Indrakanti <indrakantidivyateja@gmail.com>
Signed-off-by: Divyateja Indrakanti <indrakantidivyateja@gmail.com>
Signed-off-by: Divyateja Indrakanti <indrakantidivyateja@gmail.com>
Signed-off-by: Divyateja Indrakanti <indrakantidivyateja@gmail.com>
Signed-off-by: Divyateja Indrakanti <indrakantidivyateja@gmail.com>
Signed-off-by: Divyateja Indrakanti <indrakantidivyateja@gmail.com>
@Divyateja2709 Divyateja2709 requested a review from a team as a code owner May 6, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant