[clang-tools-extra] 9ad45b4 - [clang-tidy] Modernize HungarianNotationOption (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sat May 6 08:56:40 PDT 2023


Author: Kazu Hirata
Date: 2023-05-06T08:56:27-07:00
New Revision: 9ad45b4ab72cbb7acd15fdbea9aefcd66bf867e7

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

LOG: [clang-tidy] Modernize HungarianNotationOption (NFC)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h b/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
index f16de8bcc54ad..3df15ad780180 100644
--- a/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
+++ b/clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
@@ -54,10 +54,10 @@ class IdentifierNamingCheck final : public RenamerClangTidyCheck {
   };
 
   struct HungarianNotationOption {
-    HungarianNotationOption() : HPType(HungarianPrefixType::HPT_Off) {}
+    HungarianNotationOption() = default;
 
     std::optional<CaseType> Case;
-    HungarianPrefixType HPType;
+    HungarianPrefixType HPType = HungarianPrefixType::HPT_Off;
     llvm::StringMap<std::string> General;
     llvm::StringMap<std::string> CString;
     llvm::StringMap<std::string> PrimitiveType;


        


More information about the cfe-commits mailing list