HomePhabricator

[clang-tidy] Fix ODR violation in unittests.

Authored by dergachev.a on Jul 29 2020, 6:05 PM.

Description

[clang-tidy] Fix ODR violation in unittests.

Both tests define clang::tidy::test::TestCheck::registerMatchers().
This is UB and causes linker to sometimes choose the wrong overload.

Put classes into anonymous namespaces to avoid the problem.

Differential Revision: https://reviews.llvm.org/D84902

Details

Committed
dergachev.aJul 30 2020, 8:52 AM
Differential Revision
D84902: [clang-tidy] Fix ODR violation in unittests.
Parents
rGb6635b5b15cb: [lldb] Add SBCommandInterpreterRunOptions to LLDB.h
Branches
Unknown
Tags
Unknown