[PATCH] D144431: [clang-tidy] Fix readability-identifer-naming Hungarian CString options
Alexis Murzeau via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 21 10:59:22 PST 2023
amurzeau updated this revision to Diff 499239.
amurzeau added a comment.
Add a release note for this fix.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144431/new/
https://reviews.llvm.org/D144431
Files:
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
Index: clang-tools-extra/docs/ReleaseNotes.rst
===================================================================
--- clang-tools-extra/docs/ReleaseNotes.rst
+++ clang-tools-extra/docs/ReleaseNotes.rst
@@ -169,6 +169,10 @@
<clang-tidy/checks/misc/unused-using-decls>` check.
Global options of the same name should be used instead.
+- Fixed reading `HungarianNotation.CString.*` options in
+ :doc:`readability-identifier-naming
+ <clang-tidy/checks/readability/identifier-naming>` check.
+
Removed checks
^^^^^^^^^^^^^^
Index: clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
===================================================================
--- clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
+++ clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
@@ -472,7 +472,7 @@
Buffer.append(CStr.first);
StringRef Val = Options.get(Buffer, "");
if (!Val.empty())
- HNOption.CString[CStr.first] = Val.str();
+ HNOption.CString[CStr.second] = Val.str();
}
Buffer = {Section, "PrimitiveType."};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144431.499239.patch
Type: text/x-patch
Size: 1086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230221/9cd72f2c/attachment.bin>
More information about the cfe-commits
mailing list