Loading compiler/CMakeLists.txt +5 −1 Original line number Diff line number Diff line set(LIBRARY_NAME qcor-ast-plugin) configure_file(fuzzy_parsing.in.cpp ${CMAKE_BINARY_DIR}/compiler/fuzzy_parsing.cpp) add_library(${LIBRARY_NAME} SHARED fuzzy_parsing.cpp ${CMAKE_BINARY_DIR}/compiler/fuzzy_parsing.cpp qcor_ast_visitor.cpp qcor_ast_consumer.cpp qcor_frontend_action.cpp) Loading compiler/fuzzy_parsing.cpp→compiler/fuzzy_parsing.in.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ void FuzzyParsingExternalSemaSource::initialize() { hast = tooling::buildASTFromCodeWithArgs( "#include \"heterogeneous.hpp\"\nvoid f(xacc::HeterogeneousMap&& " "m, std::vector<double>& x){return;}", {"-std=c++14", "-I/home/cades/.xacc/include/xacc"}); {"-std=c++14", "-I@CMAKE_INSTALL_PREFIX@/include/xacc"}); hMapRValue = FirstDeclMatcher<ParmVarDecl>().match( hast->getASTContext().getTranslationUnitDecl(), namedDecl(hasName("m"))); stdVector = FirstDeclMatcher<ParmVarDecl>().match( Loading compiler/tests/QCORASTVisitorTester.in.cpp +3 −6 Original line number Diff line number Diff line Loading @@ -34,8 +34,7 @@ TEST(QCORASTVisitorTester, checkSimple) { Rewriter rewriter1; xacc::setAccelerator("dummy"); auto action1 = new QCORFrontendAction(rewriter1, "temp.cpp"); std::vector<std::string> args{"-std=c++14", "-I/usr/lib/gcc/x86_64-linux-gnu/8/include"}; std::vector<std::string> args{"-std=c++14"}; const std::string bell = R"bell(#include <vector> using qbit = std::vector<int>; Loading Loading @@ -136,8 +135,7 @@ TEST(QCORASTVisitorTester, checkParamAnsatzDouble) { Rewriter rewriter1; xacc::setAccelerator("dummy"); auto action1 = new QCORFrontendAction(rewriter1, "temp.cpp"); std::vector<std::string> args{"-std=c++14", "-I/usr/lib/gcc/x86_64-linux-gnu/8/include"}; std::vector<std::string> args{"-std=c++14"}; const std::string bell = R"bell(#include <vector> using qbit = std::vector<int>; Loading Loading @@ -259,8 +257,7 @@ TEST(QCORASTVisitorTester, checkParamAnsatzVectorDouble) { Rewriter rewriter1; xacc::setAccelerator("dummy"); auto action1 = new QCORFrontendAction(rewriter1, "temp.cpp"); std::vector<std::string> args{"-std=c++14", "-I/usr/lib/gcc/x86_64-linux-gnu/8/include"}; std::vector<std::string> args{"-std=c++14"}; const std::string bell = R"bell(#include <vector> using qbit = std::vector<int>; Loading Loading
compiler/CMakeLists.txt +5 −1 Original line number Diff line number Diff line set(LIBRARY_NAME qcor-ast-plugin) configure_file(fuzzy_parsing.in.cpp ${CMAKE_BINARY_DIR}/compiler/fuzzy_parsing.cpp) add_library(${LIBRARY_NAME} SHARED fuzzy_parsing.cpp ${CMAKE_BINARY_DIR}/compiler/fuzzy_parsing.cpp qcor_ast_visitor.cpp qcor_ast_consumer.cpp qcor_frontend_action.cpp) Loading
compiler/fuzzy_parsing.cpp→compiler/fuzzy_parsing.in.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ void FuzzyParsingExternalSemaSource::initialize() { hast = tooling::buildASTFromCodeWithArgs( "#include \"heterogeneous.hpp\"\nvoid f(xacc::HeterogeneousMap&& " "m, std::vector<double>& x){return;}", {"-std=c++14", "-I/home/cades/.xacc/include/xacc"}); {"-std=c++14", "-I@CMAKE_INSTALL_PREFIX@/include/xacc"}); hMapRValue = FirstDeclMatcher<ParmVarDecl>().match( hast->getASTContext().getTranslationUnitDecl(), namedDecl(hasName("m"))); stdVector = FirstDeclMatcher<ParmVarDecl>().match( Loading
compiler/tests/QCORASTVisitorTester.in.cpp +3 −6 Original line number Diff line number Diff line Loading @@ -34,8 +34,7 @@ TEST(QCORASTVisitorTester, checkSimple) { Rewriter rewriter1; xacc::setAccelerator("dummy"); auto action1 = new QCORFrontendAction(rewriter1, "temp.cpp"); std::vector<std::string> args{"-std=c++14", "-I/usr/lib/gcc/x86_64-linux-gnu/8/include"}; std::vector<std::string> args{"-std=c++14"}; const std::string bell = R"bell(#include <vector> using qbit = std::vector<int>; Loading Loading @@ -136,8 +135,7 @@ TEST(QCORASTVisitorTester, checkParamAnsatzDouble) { Rewriter rewriter1; xacc::setAccelerator("dummy"); auto action1 = new QCORFrontendAction(rewriter1, "temp.cpp"); std::vector<std::string> args{"-std=c++14", "-I/usr/lib/gcc/x86_64-linux-gnu/8/include"}; std::vector<std::string> args{"-std=c++14"}; const std::string bell = R"bell(#include <vector> using qbit = std::vector<int>; Loading Loading @@ -259,8 +257,7 @@ TEST(QCORASTVisitorTester, checkParamAnsatzVectorDouble) { Rewriter rewriter1; xacc::setAccelerator("dummy"); auto action1 = new QCORFrontendAction(rewriter1, "temp.cpp"); std::vector<std::string> args{"-std=c++14", "-I/usr/lib/gcc/x86_64-linux-gnu/8/include"}; std::vector<std::string> args{"-std=c++14"}; const std::string bell = R"bell(#include <vector> using qbit = std::vector<int>; Loading