Skip to content

Commit

Permalink
Merge pull request #386 from potassco/feature/ordered_set
Browse files Browse the repository at this point in the history
Feature/ordered set
  • Loading branch information
rkaminsk authored Aug 17, 2022
2 parents 5454cef + 4fe9dba commit 6b2cadf
Show file tree
Hide file tree
Showing 48 changed files with 1,633 additions and 4,041 deletions.
15 changes: 15 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,18 @@
[submodule "third_party/catch"]
path = third_party/catch
url = ../../catchorg/Catch2.git
[submodule "third_party/ordered-map"]
path = third_party/ordered-map
url = ../../Tessil/ordered-map.git
[submodule "third_party/hopscotch-map"]
path = third_party/hopscotch-map
url = ../../Tessil/hopscotch-map.git
[submodule "third_party/sparse-map"]
path = third_party/sparse-map
url = ../../Tessil/sparse-map.git
[submodule "third_party/optional"]
path = third_party/optional
url = ../../TartanLlama/optional.git
[submodule "third_party/variant"]
path = third_party/variant
url = ../../mpark/variant.git
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# build targets
option(CLINGO_BUILD_WEB
option(CLINGO_BUILD_WEB
"Enable the web target. This option is meant to be used with emscripten to \
compile a library exporting just one function to run clingo."
compile a library exporting just one function to run clingo."
OFF)
option(CLINGO_BUILD_TESTS
"Enable unit and system tests."
Expand Down Expand Up @@ -66,6 +66,8 @@ ON)
option(CLINGO_USE_LOCAL_CATCH
"Advanced option to build against bundled or installed catch."
ON)
set(CLINGO_MAP_TYPE "hopscotch" CACHE STRING
"Select hash table implementation. (sparse, hopscotch)")


# Python configuration
Expand Down Expand Up @@ -201,7 +203,7 @@ else()
set_property(TARGET Python::Python PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${PYTHON_INCLUDE_DIRS}")
set_property(TARGET Python::Module PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${PYTHON_INCLUDE_DIRS}")
set_property(TARGET Python::Python PROPERTY INTERFACE_LINK_LIBRARIES "${PYTHON_LIBRARIES}")
if (MSVC)
if (MSVC)
set_property(TARGET Python::Module PROPERTY INTERFACE_LINK_LIBRARIES "${PYTHON_LIBRARIES}")
endif()
endif()
Expand Down
4 changes: 1 addition & 3 deletions libclingo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ set(header-group-clingo
"${CMAKE_CURRENT_SOURCE_DIR}/clingo/clingocontrol.hh"
"${CMAKE_CURRENT_SOURCE_DIR}/clingo/control.hh"
"${CMAKE_CURRENT_SOURCE_DIR}/clingo/incmode.hh"
"${CMAKE_CURRENT_SOURCE_DIR}/clingo/optional.hh"
"${CMAKE_CURRENT_SOURCE_DIR}/clingo/scripts.hh"
"${CMAKE_CURRENT_SOURCE_DIR}/clingo/variant.hh")
"${CMAKE_CURRENT_SOURCE_DIR}/clingo/scripts.hh")
source_group("${ide_header_group}\\clingo" FILES ${header-group-clingo})
set(header
${header-group}
Expand Down
5 changes: 3 additions & 2 deletions libclingo/clingo/astv2.hh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@

#include <gringo/input/programbuilder.hh>
#include <clingo.h>
#include <clingo/variant.hh>
#include <clingo/optional.hh>

#include <mpark/variant.hpp>
#include <tl/optional.hpp>

// TODO:
// - the way OAST and SAST are handled is really realy ugly
Expand Down
Loading

0 comments on commit 6b2cadf

Please sign in to comment.