Add appveyor.yml

This commit is contained in:
Jonathan Müller 2017-04-20 20:33:58 +02:00
commit d1fafdaa92
10 changed files with 40 additions and 24 deletions

View file

@ -101,9 +101,6 @@ add_library(cppast ${detail_header} ${header} ${source} ${libclang_source})
target_include_directories(cppast PUBLIC ../include)
target_link_libraries(cppast PUBLIC type_safe _cppast_tiny_process _cppast_libclang)
target_compile_definitions(cppast PUBLIC
CPPAST_LIBCLANG_SYSTEM_INCLUDE_DIR="${LIBCLANG_SYSTEM_INCLUDE_DIR}"
CPPAST_CLANG_BINARY="${CLANG_BINARY}"
CPPAST_CLANG_VERSION_STRING="${LLVM_VERSION}"
CPPAST_VERSION_STRING="${cppast_VERSION}")
if(CPPAST_ENABLE_ASSERTIONS)
target_compile_definitions(cppast PUBLIC CPPAST_ENABLE_ASSERTIONS)

View file

@ -28,7 +28,10 @@ namespace cppast
return CXChildVisit_Recurse;
};
clang_visitChildren(parent, recurse ? recurse_lambda : continue_lambda, &f);
if (recurse)
clang_visitChildren(parent, recurse_lambda, &f);
else
clang_visitChildren(parent, continue_lambda, &f);
}
// visits a translation unit

View file

@ -7,6 +7,7 @@
#include <algorithm>
#include <cstddef>
#include <cstring>
#include <cctype>
#include <process.hpp>

View file

@ -4,6 +4,8 @@
#include "tokenizer.hpp"
#include <cctype>
#include "libclang_visitor.hpp"
#include "parse_error.hpp"

View file

@ -4,6 +4,8 @@
#include "parse_functions.hpp"
#include <cctype>
#include <cppast/cpp_array_type.hpp>
#include <cppast/cpp_decltype_type.hpp>
#include <cppast/cpp_expression.hpp>