Skip to content

Commit 64e3309

Browse files
committed
[clang][cas] Fix build warnings
* Handle all scan formats in switch (cherry picked from commit 636f9b1)
1 parent f76a3c5 commit 64e3309

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/tools/clang-scan-deps/ClangScanDeps.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,13 +493,12 @@ handleIncludeTreeToolResult(llvm::cas::ObjectStore &CAS,
493493

494494
static bool outputFormatRequiresCAS() {
495495
switch (Format) {
496-
case ScanningOutputFormat::Make:
497-
case ScanningOutputFormat::Full:
498-
return false;
499496
case ScanningOutputFormat::Tree:
500497
case ScanningOutputFormat::FullTree:
501498
case ScanningOutputFormat::IncludeTree:
502499
return true;
500+
default:
501+
return false;
503502
}
504503
}
505504

0 commit comments

Comments
 (0)