Commit aec9c22b authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

removing accidentally included hard path

parent 43c784c5
Loading
Loading
Loading
Loading
+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)
+1 −1
Original line number Diff line number Diff line
@@ -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(
+3 −6
Original line number Diff line number Diff line
@@ -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>;
@@ -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>;
@@ -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>;