Tweak for earlier VC++ Atudio compatibilty.

This commit is contained in:
jrp2014 2018-03-24 22:47:52 +00:00
parent a8aa4ce273
commit 9e6dbbf06d
2 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,14 @@ if(USE_STD_MAKE_SHARED)
add_definitions(-DCHAISCRIPT_USE_STD_MAKE_SHARED)
endif()
function(add_clang_static_analysis target)
get_target_property(SRCs ${target} SOURCES)
add_library(${target}_analyze OBJECT EXCLUDE_FROM_ALL ${SRCs})
set_target_properties(${target}_analyze PROPERTIES
COMPILE_OPTIONS "--analyze"
EXCLUDE_FROM_DEFAULT_BUILD true)
endfunction()
if(CMAKE_COMPILER_IS_GNUCC)
option(ENABLE_COVERAGE "Enable Coverage Reporting in GCC" FALSE)

View File

@ -583,7 +583,7 @@ namespace Catch {
struct AssertionInfo
{
StringRef macroName;
SourceLineInfo lineInfo{};
SourceLineInfo lineInfo;
StringRef capturedExpression;
ResultDisposition::Flags resultDisposition;