Skip to content

Fix clang-apply-replacements flag detection#4844

Open
Rahmi-serag wants to merge 1 commit into
Ericsson:masterfrom
Rahmi-serag:fix/4768-clang-apply-replacements-stderr
Open

Fix clang-apply-replacements flag detection#4844
Rahmi-serag wants to merge 1 commit into
Ericsson:masterfrom
Rahmi-serag:fix/4768-clang-apply-replacements-stderr

Conversation

@Rahmi-serag
Copy link
Copy Markdown

Fixes #4768.

CodeChecker detects whether clang-apply-replacements supports --ignore-insert-conflict by parsing the --help output.

Previously only stdout was checked. Some LLVM/Clang versions may emit help output to stderr, so CodeChecker could fail to detect the supported option.

This change checks the combined stdout and stderr output.

Added unit tests for detecting the flag from both stdout and stderr.

Tested with:
REPO_ROOT="$PWD" PYTHONPATH="$PWD/analyzer:$PWD/build/CodeChecker/lib/python3:$PWD" pytest -q analyzer/tests/unit/test_analyzer_types.py

@Rahmi-serag Rahmi-serag force-pushed the fix/4768-clang-apply-replacements-stderr branch from 190fd14 to 9251255 Compare May 7, 2026 16:11
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.

CodeChecker fixit may corrupt CPP header files

1 participant