[PATCH] [clang-tidy] Add a checker for swapped literal arguments.

Benjamin Kramer benny.kra at gmail.com
Mon Jul 14 06:52:33 PDT 2014


- Fix for crashes when the warning is within a macro (+ test)
- Use const auto *
- Wording tweak for warning message. Added types and SourceRanges to make the af
fected arguments stand out. Sadly we don't print them on the command line :(

http://reviews.llvm.org/D4457

Files:
  clang-tidy/misc/CMakeLists.txt
  clang-tidy/misc/MiscTidyModule.cpp
  clang-tidy/misc/SwappedArgumentsCheck.cpp
  clang-tidy/misc/SwappedArgumentsCheck.h
  test/clang-tidy/misc-swapped-arguments.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4457.11375.patch
Type: text/x-patch
Size: 9240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140714/9248d380/attachment.bin>


More information about the cfe-commits mailing list