Skip to content

Commit ec423db

Browse files
Update clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
Modifying the comment to make it more explicit. Co-authored-by: Jan Svoboda <[email protected]>
1 parent 6520631 commit ec423db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ class DependencyScanningAction {
392392
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
393393
DiagnosticConsumer *DiagConsumer) {
394394
// Making sure that we canonicalize the defines before we create the deep
395-
// copy.
395+
// copy to avoid unnecessary variants in the scanner and in the resulting
396+
// explicit command lines.
396397
if (any(Service.getOptimizeArgs() & ScanningOptimizations::Macros))
397398
canonicalizeDefines(Invocation->getPreprocessorOpts());
398399

0 commit comments

Comments
 (0)