Skip to content

Commit

Permalink
fix clang_tidy toolset to support cxxstd feature
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Jun 14, 2020
1 parent 002778b commit 946c7d9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions clang_tidy.jam
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ toolset.flags clang_tidy.compile OPTIONS <debug-symbols>on : -g ;
toolset.flags clang_tidy.compile OPTIONS <profiling>on : -pg ;
toolset.flags clang_tidy.compile OPTIONS <rtti>off : -fno-rtti ;

local rule cxxstd-flags ( toolset : condition * : options * )
{
toolset.flags $(toolset).compile.c++ OPTIONS $(condition) : $(options) : unchecked ;
toolset.flags $(toolset).link OPTIONS $(condition) : $(options) : unchecked ;
}

cxxstd-flags clang_tidy : <cxxstd>11/<cxxstd-dialect>iso : -std=c++11 ;
cxxstd-flags clang_tidy : <cxxstd>11/<cxxstd-dialect>gnu : -std=gnu++11 ;
cxxstd-flags clang_tidy : <cxxstd>14/<cxxstd-dialect>iso : -std=c++14 ;
cxxstd-flags clang_tidy : <cxxstd>14/<cxxstd-dialect>gnu : -std=gnu++14 ;
cxxstd-flags clang_tidy : <cxxstd>17/<cxxstd-dialect>iso : -std=c++17 ;
cxxstd-flags clang_tidy : <cxxstd>17/<cxxstd-dialect>gnu : -std=gnu++17 ;

###############################################################################
# C and C++ compilation

Expand Down

0 comments on commit 946c7d9

Please sign in to comment.