Skip to content

Handle source paths starting with at sign#4845

Open
Rahmi-serag wants to merge 1 commit intoEricsson:masterfrom
Rahmi-serag:fix/4658-at-folder-path
Open

Handle source paths starting with at sign#4845
Rahmi-serag wants to merge 1 commit intoEricsson:masterfrom
Rahmi-serag:fix/4658-at-folder-path

Conversation

@Rahmi-serag
Copy link
Copy Markdown

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

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

1 participant