[PATCH] D15411: [clang-tidy] Check for suspicious string assignments.

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 10 02:52:54 PST 2015


xazax.hun created this revision.
xazax.hun added a reviewer: alexfh.
xazax.hun added subscribers: dkrupp, cfe-commits.

It is possible to assign arbitrary integer types to strings. Sometimes it is the result of missing to_string call or apostrophes. 

This check aims to find such errors.

http://reviews.llvm.org/D15411

Files:
  clang-tidy/misc/CMakeLists.txt
  clang-tidy/misc/MiscTidyModule.cpp
  clang-tidy/misc/StringAssignmentCheck.cpp
  clang-tidy/misc/StringAssignmentCheck.h
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/misc-string-assignment.rst
  test/clang-tidy/misc-string-assignment.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15411.42404.patch
Type: text/x-patch
Size: 6966 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151210/5c10ff01/attachment-0001.bin>


More information about the cfe-commits mailing list