Skip to content

build error #286

Description

@MacroModel
ExpressionDetector.cpp:62:16: error: 'virtual void {anonymous}::IncludesPPCallbacks::InclusionDirective(clang::SourceLocation, const clang::Token&, llvm::StringRef, bool, clang::CharSourceRange, clang::OptionalFileEntryRef, llvm::StringRef, llvm::StringRef, const clang::Module*, clang::SrcMgr::CharacteristicKind)' marked 'override', but does not override
   62 |   virtual void InclusionDirective(SourceLocation HashLoc,
      |                ^~~~~~~~~~~~~~~~~~
ExpressionDetector.cpp: In member function 'bool {anonymous}::LocalTmpVarCollector::VisitDeclRefExpr(clang::DeclRefExpr*)':
ExpressionDetector.cpp:121:21: error: 'class llvm::StringRef' has no member named 'startswith'; did you mean 'starts_with'?
  121 |   if (VD->getName().startswith(Prefix))
      |                     ^~~~~~~~~~
      |                     starts_with
ExpressionDetector.cpp: In member function 'void ExpressionDetector::addOneTempVar(const clang::VarDecl*)':
ExpressionDetector.cpp:366:22: error: 'class llvm::StringRef' has no member named 'startswith'; did you mean 'starts_with'?
  366 |   if (!VD->getName().startswith(TmpVarNamePrefix))
      |                      ^~~~~~~~~~
      |                      starts_with
ExpressionDetector.cpp: In member function 'bool ExpressionDetector::refToTmpVar(const clang::NamedDecl*)':
ExpressionDetector.cpp:377:15: error: 'class llvm::StringRef' has no member named 'startswith'; did you mean 'starts_with'?
  377 |   return Name.startswith(TmpVarNamePrefix) ||
      |               ^~~~~~~~~~
      |               starts_with
ExpressionDetector.cpp:378:15: error: 'class llvm::StringRef' has no member named 'startswith'; did you mean 'starts_with'?
  378 |          Name.startswith(PrintedVarNamePrefix) ||
      |               ^~~~~~~~~~
      |               starts_with
ExpressionDetector.cpp:379:15: error: 'class llvm::StringRef' has no member named 'startswith'; did you mean 'starts_with'?
  379 |          Name.startswith(CheckedVarNamePrefix);
      |               ^~~~~~~~~~
      |               starts_with
ExpressionDetector.cpp: In member function 'bool ExpressionDetector::isValidExpr(clang::Stmt*, const clang::Expr*)':
ExpressionDetector.cpp:527:22: error: 'class llvm::StringRef' has no member named 'startswith'; did you mean 'starts_with'?
  527 |         if (SubEName.startswith(PrintedVarNamePrefix) ||
      |                      ^~~~~~~~~~
      |                      starts_with
ExpressionDetector.cpp:528:22: error: 'class llvm::StringRef' has no member named 'startswith'; did you mean 'starts_with'?
  528 |             SubEName.startswith(CheckedVarNamePrefix))
      |                      ^~~~~~~~~~
      |                      starts_with
ExpressionDetector.cpp:544:37: error: 'class llvm::StringRef' has no member named 'startswith'; did you mean 'starts_with'?
  544 |           DRE->getDecl()->getName().startswith(TmpVarNamePrefix) &&
      |                                     ^~~~~~~~~~
      |                                     starts_with
make[2]: *** [Makefile:1213: clang_delta-ExpressionDetector.o] Error 1
make[2]: Leaving directory '/home/MacroModel/.cache/yay/creduce/src/creduce/clang_delta'
make[1]: *** [Makefile:448: all-recursive] Error 1
make[1]: Leaving directory '/home/MacroModel/.cache/yay/creduce/src/creduce'
make: *** [Makefile:380: all] Error 2
==> ERROR: A failure occurred in build().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions