Skip to content

Commit

Permalink
Reintroduce modernize-use-emplace check. (Exawind#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Dec 30, 2021
1 parent a587fff commit 2d3d9eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,corecppguidelines-*,modernize-*,readability-*,-readability-magic-numbers,-readability-identifier-naming,-modernize-avoid-c-arrays,-modernize-use-trailing-return-type,-readability-named-parameter,-readability-implicit-bool-conversion,-readability-isolate-declaration,-readability-braces-around-statements,-readability-inconsistent-declaration-parameter-name,-modernize-use-emplace,-modernize-pass-by-value,-clang-analyzer-optin.cplusplus.VirtualCall,-clang-analyzer-core.NonNullParamChecker'
Checks: 'clang-diagnostic-*,clang-analyzer-*,corecppguidelines-*,modernize-*,readability-*,-readability-magic-numbers,-readability-identifier-naming,-modernize-avoid-c-arrays,-modernize-use-trailing-return-type,-readability-named-parameter,-readability-implicit-bool-conversion,-readability-isolate-declaration,-readability-braces-around-statements,-readability-inconsistent-declaration-parameter-name,-modernize-pass-by-value,-clang-analyzer-optin.cplusplus.VirtualCall,-clang-analyzer-core.NonNullParamChecker'
WarningsAsErrors: ''
HeaderFilterRegex: '^((?!/amrex/Src/|/googletest/).)*$'
AnalyzeTemporaryDtors: false
Expand Down
16 changes: 8 additions & 8 deletions unit_tests/wind_energy/actuator/test_disk_uniform_ct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ TEST_F(UniformCtTest, yawed_normal_is_opposite_expected_wind_dir)
const vs::Vector west = vs::Vector::ihat();

std::vector<std::pair<vs::Vector, amrex::Real>> couplets;
couplets.push_back(std::make_pair(north, 0.0));
couplets.push_back(std::make_pair(south, 180.0));
couplets.push_back(std::make_pair(west, 270.0));
couplets.push_back(std::make_pair(east, 90.0));
couplets.emplace_back(north, 0.0);
couplets.emplace_back(south, 180.0);
couplets.emplace_back(west, 270.0);
couplets.emplace_back(east, 90.0);

amrex::ParmParse pp("Actuator.UniformCtDisk");
act::utils::ActParser ap("Actuator.UniformCtDisk", "Actuator");
Expand All @@ -239,10 +239,10 @@ TEST_F(UniformCtTest, sample_yawed_normal_is_opposite_expected_wind_dir)
const vs::Vector west = vs::Vector::ihat();

std::vector<std::pair<vs::Vector, amrex::Real>> couplets;
couplets.push_back(std::make_pair(north, 0.0));
couplets.push_back(std::make_pair(south, 180.0));
couplets.push_back(std::make_pair(west, 270.0));
couplets.push_back(std::make_pair(east, 90.0));
couplets.emplace_back(north, 0.0);
couplets.emplace_back(south, 180.0);
couplets.emplace_back(west, 270.0);
couplets.emplace_back(east, 90.0);

amrex::ParmParse pp("Actuator.UniformCtDisk");
act::utils::ActParser ap("Actuator.UniformCtDisk", "Actuator");
Expand Down

0 comments on commit 2d3d9eb

Please sign in to comment.