modify documents
This commit is contained in:
@@ -81,3 +81,18 @@ def test_p_style_001_cpp_style_and_doxygen_tooling_contract():
|
||||
assert "add_custom_target(fesa_docs" in doxygen_block.group("body")
|
||||
assert "Doxyfile" in doxygen_block.group("body")
|
||||
assert re.search(r"add_custom_target\(fesa_docs\s+ALL\b", cmake) is None
|
||||
|
||||
|
||||
def test_p_style_002_msvc_targets_enable_standard_exception_unwinding():
|
||||
cmake = read(ROOT / "src" / "fesa" / "CMakeLists.txt")
|
||||
|
||||
for target in ("fesa_solver", "fesa_cli"):
|
||||
compile_options = re.search(
|
||||
rf"target_compile_options\(\s*{target}\s+PRIVATE(?P<body>.*?)\n\)",
|
||||
cmake,
|
||||
re.DOTALL,
|
||||
)
|
||||
assert compile_options is not None, f"missing compile options for {target}"
|
||||
assert "/EHsc" in compile_options.group("body"), (
|
||||
f"{target} must enable standard C++ exception unwinding under MSVC"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user