-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/0.18.1: Version 0.18.1 Feature CLANG_TIDY only ON by default for supported compilers (GNU, Clang) ATLAS-243 Remove assertion in StructuredInterpolation3D ATLAS-244 Fix StructuredColumnsHaloExchangeCache Remove dead code ATLAS-243 Fixup ATLAS-243 Fix Structured Interpolation to match old semi-Lagrangian Dwarf ATLAS-243 Fortran: atlas_Field%strides function ATLAS-243 Fortran: create StructuredColumns with Vertical levels with extra interval ATLAS-243 Fix index access in NativeArrayView
- Loading branch information
Showing
28 changed files
with
539 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
set( CLANG_TIDY_SUPPORTED_COMPILERS GNU Clang ) | ||
|
||
set( CLANG_TIDY_DEFAULT OFF ) | ||
foreach( _clang_tidy_supported_compiler ${CLANG_TIDY_SUPPORTED_COMPILERS} ) | ||
if( CMake_CXX_COMPILER_ID MATCHES _clang_tidy_supported_compiler ) | ||
set( CLANG_TIDY_DEFAULT ON ) | ||
endif() | ||
endforeach() | ||
|
||
find_program( CLANG_TIDY_EXE NAMES "clang-tidy" ) | ||
if( CLANG_TIDY_EXE ) | ||
ecbuild_info( "Found clang-tidy: ${CLANG_TIDY_EXE}" ) | ||
if( NOT CLANG_TIDY_DEFAULT AND NOT DEFINED ENABLE_CLANG_TIDY ) | ||
ecbuild_info( "Feature CLANG_TIDY default OFF for compiler ${CMAKE_CXX_COMPILER_ID}" ) | ||
endif() | ||
endif() | ||
|
||
ecbuild_add_option( FEATURE CLANG_TIDY | ||
DEFAULT ${CLANG_TIDY_DEFAULT} | ||
DESCRIPTION "Use clang-tidy" | ||
CONDITION CLANG_TIDY_EXE ) | ||
|
||
if (HAVE_CLANG_TIDY) | ||
set(CLANG_TIDY_CHECKS "-*,readability-braces-around-statements,redundant-string-init") | ||
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXE};-checks=${CLANG_TIDY_CHECKS};-header-filter='${CMAKE_SOURCE_DIR}/*'") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
find_program( INCLUDE_WHAT_YOU_USE_EXE NAMES "include-what-you-use" ) | ||
if( INCLUDE_WHAT_YOU_USE_EXE ) | ||
ecbuild_info( "Found include-what-you-use: ${INCLUDE_WHAT_YOU_USE_EXE}" ) | ||
endif() | ||
|
||
ecbuild_add_option( FEATURE INCLUDE_WHAT_YOU_USE | ||
DEFAULT OFF # Need clang compiler? | ||
DESCRIPTION "Use include-what-you-use clang-tool" | ||
CONDITION INCLUDE_WHAT_YOU_USE_EXE ) | ||
|
||
if( HAVE_INCLUDE_WHAT_YOU_USE ) | ||
set( CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${INCLUDE_WHAT_YOU_USE_EXE} ) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.