<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/135011>135011</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            `clang-scan-deps` is not using clang's default config files
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          hanickadot
      </td>
    </tr>
</table>

<pre>
    I found out `clang-scan-deps` is not loading default's clang's config files. They need to be passed explicitly.

--------
More details:

When building a modularized code in cmake on mac (latest brew's LLVM and cmake 4) when I try to build a modularized code I get error that some random file is missing:

```
/opt/homebrew/opt/llvm/bin/../include/c++/v1/__locale_dir/support/bsd_like.h:21:10: fatal error: 'time.h' file not found
```

If I pass `--config=/Users/hanka/.config/clang` it will work correctly.

clang 20 from homebrew on mac is now using a bunch of configuration files (per each platform and target + user custom config file) `clang-scan-deps` and **other tools should be able to load clang's default configuration files in same manner as clang**.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8lE-PpDYTxj-N-1JqZAzdbB84MFohtbR7e9_kOCrsApw2NvKf6Uw-fWRgd1bRJMgHwOXy43p-ZQxBT5aoZZcXdvl6whRn59sZrZYPVC6eBqfe2zuMLlkFLkVgVy4N2ukcJNqzojWwKwcdwLoIxqHSdgJFIyYTmWgCbNH7m7OjnmDUhkIB_5vpHSyRguhgIFgxBFJAf65GSx3Ne8F4x3h3Ph7Gu-_OEyiKqE1gVbfP_z6ThSFps-2MsDiVDHr9FymQThFoC3LBB4GzsKAEJr4YjBQiDJ6em7Jv3377DmjVEVgzcYNnznuH6N83gXmDz7LfYaII5L3zEGeMENxC4NEqt2xHzbVZdAjaTj81sys_Bu-Y6N0amehnt9Cu6PhhzNvCRD9oy0RfFEz02kqTFDHRSyZettG_lUz0r6_GSTT0qrRnog9pXZ3POYagXo1-UDGzqhMlq7qSs6qDESOaXXb-ZKKJeslRotlVZzs31_8pl3f3Ee6bXRmG83m3lVVfmej_H8iHfBa0D8yqj0nR7xhkVCI8tTHwdP4B0nlP8sPsLQoEh9G7BX5U5IdzG2VPSGF3ekhWzuDGA6zkMWpnd76yyyt5IJQzrAbj6PyyWRzRZ8eYeIEUyINMIbrlVziz-59jntcz0THRuTiTh-icCRBml4zKDONgKNOS--AX8I92-FSnthBwIVjQWvKAPxsm71KcVFupW3XDE7VlU9eCX-trfZrbuvzCL_zW3KoG5chLUQ7ieuPqNlYNNlKddCu4uPCa38qqbuq6uIhqJCUvg5QXGlXDak4LalNkzArnp5MOIVFbVhdelieDA5mwXQxCHJJEviN8mxechzQFVnOjQwwfKaKOhtr_vCN29_6tOHtVTsmbdo5x3dpc9Ez0k45zGgrplo_O2ISs3v1BMrO-6c_0HUd4a8XfAQAA___hCpcL">