[clang-tidy] Add a checker for swapped arguments.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 14 Jul 2014 14:24:30 +0000 (14:24 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 14 Jul 2014 14:24:30 +0000 (14:24 +0000)
commit082bf7f637164086f5cf3135dc892f0ca5191b50
tree14a152c164376f09007ca45737835f8fb809afe3
parentad21688625c36a5a71155dd8b894ca8c54ff0808
[clang-tidy] Add a checker for swapped arguments.

This looks for swapped arguments by looking at implicit conversions of arguments

void Foo(int, double);
Foo(1.0, 3); // Most likely a bug

llvm-svn: 212942
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
clang-tools-extra/clang-tidy/misc/SwappedArgumentsCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/misc/SwappedArgumentsCheck.h [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/misc-swapped-arguments.cpp [new file with mode: 0644]