Add fast preprocessing mode

This commit is contained in:
Jonathan Müller 2018-02-01 18:27:33 +01:00
commit 8c426ac115
7 changed files with 442 additions and 244 deletions

View file

@ -110,7 +110,7 @@ TEST_CASE("stdlib", "[!hide][integration]")
REQUIRE(!parser.error());
REQUIRE(file);
resolve_includes(parser, file.value(), config);
REQUIRE(resolve_includes(parser, file.value(), config) == 62);
REQUIRE(!parser.error());
}
@ -125,6 +125,7 @@ TEST_CASE("cppast", "[!hide][integration]")
libclang_compilation_database database("../");
libclang_compile_config config(database, CPPAST_INTEGRATION_FILE);
config.fast_preprocessing(true);
parse_files(parser, files, config);
REQUIRE(!parser.error());