Skip to content

Commit

Permalink
clang-tidy performance-*
Browse files Browse the repository at this point in the history
  • Loading branch information
MFraters committed Jun 26, 2021
1 parent fd6c348 commit 69a3a79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set (WORLD_BUILDER_SOURCE_DIR ${PROJECT_SOURCE_DIR})

# generate version.cc
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/source/config.cc.in" "${CMAKE_BINARY_DIR}/source/config.cc" @ONLY)

set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-checks=performance-*;--fix")
# finding support for different languages
# finding a fortran compiler
set(WB_MAKE_FORTRAN_WRAPPER TRUE CACHE STRING "Whether or not to create a Fortran wrapper for the world builder.")
Expand Down
2 changes: 1 addition & 1 deletion include/world_builder/parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ namespace WorldBuilder
void
declare_model_entries(const std::string &model_group_name,
const std::string &parent_name,
std::map<std::string, void ( *)(Parameters &,const std::string &)> declare_map,
const std::map<std::string, void ( *)(Parameters &,const std::string &)>& declare_map,
const std::vector<std::string> &required_entries = {},
const std::vector<std::tuple<std::string,const WorldBuilder::Types::Interface &, std::string> > &extra_declarations = {});

Expand Down
2 changes: 1 addition & 1 deletion source/parameters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ namespace WorldBuilder
void
Parameters::declare_model_entries(const std::string &model_group_name,
const std::string &parent_name,
std::map<std::string, void ( *)(Parameters &,const std::string &)> declare_map,
const std::map<std::string, void ( *)(Parameters &,const std::string &)>& declare_map,
const std::vector<std::string> &required_entries,
const std::vector<std::tuple<std::string,const WorldBuilder::Types::Interface &, std::string> > &extra_declarations)
{
Expand Down

0 comments on commit 69a3a79

Please sign in to comment.