[clang-tools-extra] f0922ef - [clang-tidy] Remove bad assert after 3b9b90a1

Nathan James via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 9 05:22:10 PST 2020


Author: Nathan James
Date: 2020-11-09T13:21:55Z
New Revision: f0922efddef49b7f9057f5c3d5b6b8968111aadf

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

LOG: [clang-tidy] Remove bad assert after 3b9b90a1

Forgot to remove it on push, just there to help debugging

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp b/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
index 5d63066490a6..d7160d52750f 100644
--- a/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
+++ b/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
@@ -754,7 +754,6 @@ IdentifierNamingCheck::getStyleForFile(StringRef FileName) const {
     assert(It.second);
     return It.first->getValue();
   }
-  assert(false);
   // Default construction gives an empty style.
   auto It = NamingStylesCache.try_emplace(Parent);
   assert(It.second);


        


More information about the cfe-commits mailing list