[clang-tools-extra] r190992 - Don't use default label in fully covered switch

Alexey Samsonov samsonov at google.com
Thu Sep 19 00:35:48 PDT 2013


Author: samsonov
Date: Thu Sep 19 02:35:47 2013
New Revision: 190992

URL: http://llvm.org/viewvc/llvm-project?rev=190992&view=rev
Log:
Don't use default label in fully covered switch

Modified:
    clang-tools-extra/trunk/modularize/Modularize.cpp

Modified: clang-tools-extra/trunk/modularize/Modularize.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/Modularize.cpp?rev=190992&r1=190991&r2=190992&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/Modularize.cpp (original)
+++ clang-tools-extra/trunk/modularize/Modularize.cpp Thu Sep 19 02:35:47 2013
@@ -505,8 +505,6 @@ public:
     case LinkageSpecDecl::lang_cxx:
       LinkageLabel = "extern \"C++\" {}";
       break;
-    default:
-      LinkageLabel = "extern \"\" {}";
     }
     if (!PPTracker.checkForIncludesInBlock(PP, BlockRange, LinkageLabel,
                                            errs()))





More information about the cfe-commits mailing list