[clang] 4170ea9 - [clang][deps] NFC: Fix whitespace formatting

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 17 05:00:26 PST 2021


Author: Jan Svoboda
Date: 2021-12-17T14:00:20+01:00
New Revision: 4170ea9445cc407ec1bf8cfa5bc5ce2d5295fa36

URL: https://github.com/llvm/llvm-project/commit/4170ea9445cc407ec1bf8cfa5bc5ce2d5295fa36
DIFF: https://github.com/llvm/llvm-project/commit/4170ea9445cc407ec1bf8cfa5bc5ce2d5295fa36.diff

LOG: [clang][deps] NFC: Fix whitespace formatting

Added: 
    

Modified: 
    clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
index 540f807bf8a60..eb99fb11fba37 100644
--- a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
+++ b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
@@ -115,15 +115,14 @@ static bool shouldMinimizeBasedOnExtension(StringRef Filename) {
   if (Ext.empty())
     return true; // C++ standard library
   return llvm::StringSwitch<bool>(Ext)
-    .CasesLower(".c", ".cc", ".cpp", ".c++", ".cxx", true)
-    .CasesLower(".h", ".hh", ".hpp", ".h++", ".hxx", true)
-    .CasesLower(".m", ".mm", true)
-    .CasesLower(".i", ".ii", ".mi", ".mmi", true)
-    .CasesLower(".def", ".inc", true)
-    .Default(false);
+      .CasesLower(".c", ".cc", ".cpp", ".c++", ".cxx", true)
+      .CasesLower(".h", ".hh", ".hpp", ".h++", ".hxx", true)
+      .CasesLower(".m", ".mm", true)
+      .CasesLower(".i", ".ii", ".mi", ".mmi", true)
+      .CasesLower(".def", ".inc", true)
+      .Default(false);
 }
 
-
 static bool shouldCacheStatFailures(StringRef Filename) {
   StringRef Ext = llvm::sys::path::extension(Filename);
   if (Ext.empty())


        


More information about the cfe-commits mailing list