Skip to content

Handle source paths starting with at sign#4845

Merged
bruntib merged 1 commit into
Ericsson:masterfrom
Rahmi-serag:fix/4658-at-folder-path
May 27, 2026
Merged

Handle source paths starting with at sign#4845
bruntib merged 1 commit into
Ericsson:masterfrom
Rahmi-serag:fix/4658-at-folder-path

Conversation

@Rahmi-serag
Copy link
Copy Markdown
Contributor

Fixes #4658.

CodeChecker treated every command argument starting with @ as a response file. Because of that, a real source path like @folder/main.cpp was incorrectly interpreted as folder/main.cpp.

This change keeps @... as a normal compiler argument when that path exists as a real file.

Added a unit test for source file paths starting with @.

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

@Rahmi-serag Rahmi-serag force-pushed the fix/4658-at-folder-path branch from 307d0c4 to ece91b4 Compare May 26, 2026 14:31
@bruntib bruntib merged commit 14ce690 into Ericsson:master May 27, 2026
9 checks passed
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.

Unable to find files if a source code folder starts with '@' symbol

2 participants