<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/ClangScanDeps/modules-implementation-module-map.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[clang][deps] Add module map describing compiled module to file dependencies. (#160226)</title>
<updated>2025-11-20T04:17:43+00:00</updated>
<author>
<name>Volodymyr Sapsai</name>
<email>vsapsai@apple.com</email>
</author>
<published>2025-11-20T04:17:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b39a9db3abc7abfa033a728ef29b5e5d3beb1cb5'/>
<id>b39a9db3abc7abfa033a728ef29b5e5d3beb1cb5</id>
<content type='text'>
When we add the module map describing the compiled module to the command
line, add it to the file dependencies as well.

Discovered while working on reproducers where a command line input was
missing in the captured files as it wasn't considered a dependency.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When we add the module map describing the compiled module to the command
line, add it to the file dependencies as well.

Discovered while working on reproducers where a command line input was
missing in the captured files as it wasn't considered a dependency.</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-scan-deps] Infer the tool locations from PATH (#108539)</title>
<updated>2024-09-13T20:18:10+00:00</updated>
<author>
<name>Martin Storsjö</name>
<email>martin@martin.st</email>
</author>
<published>2024-09-13T20:18:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a26ec542371652e1d774696e90016fd5b0b1c191'/>
<id>a26ec542371652e1d774696e90016fd5b0b1c191</id>
<content type='text'>
This allows the clang driver to know which tool is meant to be executed,
which allows the clang driver to load the right clang config files, and
allows clang to find colocated sysroots.

This makes sure that doing `clang-scan-deps -- &lt;tool&gt; ...` looks up
things in the same way as if one just would execute `&lt;tool&gt; ...`, when
`&lt;tool&gt;` isn't an absolute or relative path.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows the clang driver to know which tool is meant to be executed,
which allows the clang driver to load the right clang config files, and
allows clang to find colocated sysroots.

This makes sure that doing `clang-scan-deps -- &lt;tool&gt; ...` looks up
things in the same way as if one just would execute `&lt;tool&gt; ...`, when
`&lt;tool&gt;` isn't an absolute or relative path.</pre>
</div>
</content>
</entry>
<entry>
<title>[clang][deps] Prevent emitting diagnostics outside of source file</title>
<updated>2022-10-11T22:57:20+00:00</updated>
<author>
<name>Jan Svoboda</name>
<email>jan_svoboda@apple.com</email>
</author>
<published>2022-10-11T22:38:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c1c72302fe4553a39be37b5c310d046975e55019'/>
<id>c1c72302fe4553a39be37b5c310d046975e55019</id>
<content type='text'>
The dependency scanner needs to report the module map file describing the module whose implementation is being compiled (see D134222). However, calling `Preprocessor::getCurrentModuleImplementation()` in the scanner might cause a diagnostic during module map parsing and emitting a diagnostic without being "in" a source file is illegal (e.g. in `TextDiagnosticPrinter`). This patch ensures the module map parse is triggered while the compiler is still "in" a source file, avoiding the failure case.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D135637
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The dependency scanner needs to report the module map file describing the module whose implementation is being compiled (see D134222). However, calling `Preprocessor::getCurrentModuleImplementation()` in the scanner might cause a diagnostic during module map parsing and emitting a diagnostic without being "in" a source file is illegal (e.g. in `TextDiagnosticPrinter`). This patch ensures the module map parse is triggered while the compiler is still "in" a source file, avoiding the failure case.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D135637
</pre>
</div>
</content>
</entry>
</feed>
