diff options
Diffstat (limited to 'contrib/llvm-project/clang/include/clang/Analysis/BodyFarm.h')
-rw-r--r-- | contrib/llvm-project/clang/include/clang/Analysis/BodyFarm.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/llvm-project/clang/include/clang/Analysis/BodyFarm.h b/contrib/llvm-project/clang/include/clang/Analysis/BodyFarm.h index 72607f8839f5..52be29cb7885 100644 --- a/contrib/llvm-project/clang/include/clang/Analysis/BodyFarm.h +++ b/contrib/llvm-project/clang/include/clang/Analysis/BodyFarm.h @@ -11,20 +11,19 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CLANG_LIB_ANALYSIS_BODYFARM_H -#define LLVM_CLANG_LIB_ANALYSIS_BODYFARM_H +#ifndef LLVM_CLANG_ANALYSIS_BODYFARM_H +#define LLVM_CLANG_ANALYSIS_BODYFARM_H #include "clang/AST/DeclBase.h" #include "clang/Basic/LLVM.h" #include "llvm/ADT/DenseMap.h" -#include "llvm/ADT/Optional.h" +#include <optional> namespace clang { class ASTContext; class FunctionDecl; class ObjCMethodDecl; -class ObjCPropertyDecl; class Stmt; class CodeInjector; @@ -41,8 +40,11 @@ public: /// Remove copy constructor to avoid accidental copying. BodyFarm(const BodyFarm &other) = delete; + /// Delete copy assignment operator. + BodyFarm &operator=(const BodyFarm &other) = delete; + private: - typedef llvm::DenseMap<const Decl *, Optional<Stmt *>> BodyMap; + typedef llvm::DenseMap<const Decl *, std::optional<Stmt *>> BodyMap; ASTContext &C; BodyMap Bodies; |