We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6520631 commit ec423dbCopy full SHA for ec423db
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
@@ -392,7 +392,8 @@ class DependencyScanningAction {
392
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
393
DiagnosticConsumer *DiagConsumer) {
394
// Making sure that we canonicalize the defines before we create the deep
395
- // copy.
+ // copy to avoid unnecessary variants in the scanner and in the resulting
396
+ // explicit command lines.
397
if (any(Service.getOptimizeArgs() & ScanningOptimizations::Macros))
398
canonicalizeDefines(Invocation->getPreprocessorOpts());
399
0 commit comments