Skip to content

Commit

Permalink
fix: minor (clang-tidy)
Browse files Browse the repository at this point in the history
  • Loading branch information
sritejakv committed Oct 4, 2023
1 parent 99f6d85 commit 37253f0
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions unittests/Utils/AnalysisPrinterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,19 @@ class AnalysisPrinterTest : public ::testing::Test {
std::variant<std::monostate, json *, CallBackPairTy> Config) {
HelperAnalyses Helpers(PathToLlFiles + IRFile, EntryPoints);

auto TConfig =
std::visit(Overloaded{[&](std::monostate) {
return LLVMTaintConfig(
Helpers.getProjectIRDB());
},
[&](json *JS) {
auto Ret = LLVMTaintConfig(
Helpers.getProjectIRDB(), *JS);
return Ret;
},
[&](CallBackPairTy &&CB) {
return LLVMTaintConfig(std::move(CB.first),
std::move(CB.second));
}},
std::move(Config));
auto TConfig = std::visit(
Overloaded{[&](std::monostate) {
return LLVMTaintConfig(Helpers.getProjectIRDB());
},
[&](json *JS) {
auto Ret = LLVMTaintConfig(Helpers.getProjectIRDB(), *JS);
return Ret;
},
[&](CallBackPairTy &&CB) {
return LLVMTaintConfig(std::move(CB.first),
std::move(CB.second));
}},
std::move(Config));

auto TaintProblem = createAnalysisProblem<IDEExtendedTaintAnalysis<>>(
Helpers, TConfig, EntryPoints);
Expand Down

0 comments on commit 37253f0

Please sign in to comment.