Skip to content

Add support for enabling CTU (--ctu) in clangsa analyzer

What does this MR do?

This MR introduces a new option to enable cross translation unit (CTU) analysis in the clangsa analyzer.

  • Added a --ctu command-line flag.
  • Added an environment variable ENABLE_CTU for enabling CTU.
  • Updated buildAnalyzeArgs to append --ctu when enabled.

This makes it easier to configure CTU without requiring passthrough configuration.

What are the relevant issue numbers?

clangsa-sast: make the cross-translation-unit (... (gitlab-org/gitlab#570706 - closed) • Hua Yan • 18.5

Does this MR meet the acceptance criteria?

Edited by Hua Yan

Merge request reports

Loading