[PATCH] D86671: [clang-tidy] Add new case type to check variables with Hungarian notation
Douglas Chen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 11 19:53:46 PDT 2020
dougpuob updated this revision to Diff 291371.
dougpuob added a comment.
Fixed crash on Windows when run regression test (llvm-lit for `readability-identifier-naming.cpp` file).
This is because over range parameter made ctor of std::string copying out of range memory from source. The over range parameter came from SourceManager::getCharacterData() function with the SourceLocation returning value of ValDecl->getLocation().
Find the terminated char insteads of calling `ValDecl->getLocation()` function.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86671/new/
https://reviews.llvm.org/D86671
Files:
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst
clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-hungarian-notation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86671.291371.patch
Type: text/x-patch
Size: 33336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200912/7ba7957a/attachment-0001.bin>
More information about the cfe-commits
mailing list