Skip to content

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

@andyg1001

Description

@andyg1001

Describe the bug
If the source code file is within a folder that starts with the @ symbol then CodeChecker is not able to find the file during analysis.

CodeChecker version
6.26.1 (2025-07-14T22:10)

To Reproduce
Steps to reproduce the behaviour:

  1. From the command line, create a folder for a simple project and enter it
  2. Create a subfolder named @folder
  3. Create a file called @folder/main.cpp with the contents:
    int main() { return 0; }
  4. Create a top-level Makefile with the contents:
default:
    clang -o app @folder/main.cpp
  1. Run CodeChecker log --build make --output compile_commands.json
  2. Run CodeChecker analyze compile_commands.json --enable sensitive --output reports

This produces the error "Response file '.../folder/main.cpp' does not exist".

Expected behaviour

It should be able to find the file in '.../@folder/main.cpp'. Note that the compile_commands.json file does correctly identify the path of the file. It is the 'analyze' command that for some reason drops it from the path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions