[clang-tidy] remove duplicate fixes of alias checkers
authorDaniel <daniel.cohen599@gmail.com>
Fri, 19 Jun 2020 19:40:03 +0000 (20:40 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Fri, 19 Jun 2020 19:40:59 +0000 (20:40 +0100)
commitaf4f2eb476361e6da42d6f66a68cada763625c32
tree2fa7ff0fb1683dcb4a09d936abb7612907d94568
parent216a37bb4643279b548e85d98618a69475f1328c
[clang-tidy] remove duplicate fixes of alias checkers

when both a check and its alias are enabled, we should only take the fixes of one of them and not both.
This patch fixes bug 45577
https://bugs.llvm.org/show_bug.cgi?id=45577

Reviewed By: aaron.ballman, njames93

Differential Revision: https://reviews.llvm.org/D80753
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
clang-tools-extra/test/clang-tidy/infrastructure/duplicate-conflicted-fixes-of-alias-checkers.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/infrastructure/duplicate-fixes-of-alias-checkers.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/infrastructure/duplicate-reports.cpp
llvm/include/llvm/ADT/StringMap.h
llvm/unittests/ADT/StringMapTest.cpp