srctree

Robin Linden parent e3729484 5dcd5e01
Fix Clang build

inlinesplit
.bazelrc added: 5, removed: 2, total 3
@@ -30,6 +30,7 @@ build:gnulike --per_file_copt='external/asio[:/]@-Wno-undef'
build:gnulike --per_file_copt='external/boringssl[:/]@-Wno-unused-parameter'
build:gnulike --per_file_copt='external/ftxui[:/]@-Wno-shadow'
build:gnulike --per_file_copt='external/fmt[:/]@-Wno-shadow' # Fixed in master, but not in 7.1.3
build:gnulike --per_file_copt='external/imgui-sfml[:/]@-Wno-double-promotion'
build:gnulike --per_file_copt='external/imgui-sfml[:/]@-Wno-implicit-fallthrough'
build:gnulike --per_file_copt='external/imgui-sfml[:/]@-Wno-undef'
build:gnulike --per_file_copt='external/imgui-sfml[:/]@-Wno-unused-parameter'
 
util/base_parser_test.cpp added: 5, removed: 2, total 3
@@ -32,6 +32,7 @@ int main() {
expect_true(static_test<abcd.starts_with("abcd")>());
});
 
#ifndef __clang__ // Clang doesn't yet support lambdas in templates.
etest::test("is_eof, advance", [] {
constexpr auto abcd = BaseParser("abcd");
expect_true(static_test<!abcd.is_eof()>());
@@ -75,4 +76,5 @@ int main() {
return true;
}()>());
});
#endif
}