The main idea is to compile the cxx grammar at build time, and construct the core pieces (Grammar, LRTable) of the pseudoparse based on the compiled data sources. This is a tiny implementation, which is good for start: - defines how the public API should look like; - integrates the cxx grammar compilation workflow with the cmake system. - onlynonterminal symbols of the C++ grammar are compiled, anything else are still doing the real compilation work at runtime, we can opt-in more bits in the future; - splits the monolithic clangPsuedo library for better layering; Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D125667
13 lines
320 B
CMake
13 lines
320 B
CMake
include_directories(include)
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
|
|
add_subdirectory(include)
|
|
add_subdirectory(gen)
|
|
add_subdirectory(lib)
|
|
add_subdirectory(tool)
|
|
add_subdirectory(fuzzer)
|
|
add_subdirectory(benchmarks)
|
|
if(CLANG_INCLUDE_TESTS)
|
|
add_subdirectory(unittests)
|
|
add_subdirectory(test)
|
|
endif()
|