Browse Source

Roll-back r250822.

Summary: It breaks the build for the ASTMatchers

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D13893

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250827 91177308-0d34-0410-b5e6-96231b3b80d8
Angel Garcia Gomez 9 years ago
parent
commit
d162035b9b
100 changed files with 145 additions and 142 deletions
  1. 1 1
      include/clang/AST/ASTConsumer.h
  2. 2 2
      include/clang/AST/CanonicalType.h
  3. 1 1
      include/clang/AST/DeclFriend.h
  4. 1 1
      include/clang/AST/DeclTemplate.h
  5. 2 2
      include/clang/AST/Expr.h
  6. 1 1
      include/clang/AST/ExprCXX.h
  7. 1 1
      include/clang/AST/Mangle.h
  8. 1 1
      include/clang/AST/MangleNumberingContext.h
  9. 1 1
      include/clang/AST/Redeclarable.h
  10. 1 1
      include/clang/AST/StmtIterator.h
  11. 1 1
      include/clang/AST/UnresolvedSet.h
  12. 1 1
      include/clang/AST/VTableBuilder.h
  13. 6 6
      include/clang/ASTMatchers/ASTMatchersInternal.h
  14. 1 1
      include/clang/Analysis/Analyses/FormatString.h
  15. 1 1
      include/clang/Analysis/Analyses/LiveVariables.h
  16. 1 1
      include/clang/Analysis/Analyses/ReachableCode.h
  17. 1 1
      include/clang/Analysis/Analyses/ThreadSafetyTraverse.h
  18. 1 1
      include/clang/Analysis/Analyses/UninitializedValues.h
  19. 4 4
      include/clang/Analysis/AnalysisContext.h
  20. 2 2
      include/clang/Analysis/CFG.h
  21. 1 1
      include/clang/Basic/FileSystemStatCache.h
  22. 1 1
      include/clang/Basic/IdentifierTable.h
  23. 1 1
      include/clang/Driver/Job.h
  24. 1 1
      include/clang/Edit/EditsReceiver.h
  25. 2 2
      include/clang/Frontend/SerializedDiagnosticReader.h
  26. 1 1
      include/clang/Frontend/VerifyDiagnosticConsumer.h
  27. 1 1
      include/clang/Lex/ModuleMap.h
  28. 1 1
      include/clang/Lex/PTHLexer.h
  29. 1 1
      include/clang/Lex/PreprocessorLexer.h
  30. 3 3
      include/clang/Sema/Sema.h
  31. 1 1
      include/clang/Sema/TypoCorrection.h
  32. 2 2
      include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
  33. 1 1
      include/clang/StaticAnalyzer/Core/BugReporter/BugType.h
  34. 1 1
      include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
  35. 1 1
      include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
  36. 1 1
      include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
  37. 1 1
      include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
  38. 1 1
      include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
  39. 1 1
      include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h
  40. 2 2
      include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
  41. 1 1
      include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h
  42. 1 1
      include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h
  43. 1 1
      include/clang/Tooling/FileMatchTrie.h
  44. 1 1
      include/clang/Tooling/Tooling.h
  45. 1 1
      lib/ARCMigrate/ARCMT.cpp
  46. 1 1
      lib/ARCMigrate/TransformActions.cpp
  47. 1 1
      lib/ARCMigrate/Transforms.cpp
  48. 2 2
      lib/AST/ASTContext.cpp
  49. 1 1
      lib/AST/ASTImporter.cpp
  50. 2 2
      lib/AST/DeclBase.cpp
  51. 1 1
      lib/AST/ExternalASTSource.cpp
  52. 1 1
      lib/AST/StmtPrinter.cpp
  53. 1 1
      lib/AST/VTableBuilder.cpp
  54. 3 3
      lib/ASTMatchers/ASTMatchFinder.cpp
  55. 2 2
      lib/ASTMatchers/Dynamic/Marshallers.h
  56. 2 2
      lib/ASTMatchers/Dynamic/Parser.cpp
  57. 2 2
      lib/ASTMatchers/Dynamic/VariantValue.cpp
  58. 2 2
      lib/Analysis/AnalysisDeclContext.cpp
  59. 1 1
      lib/Analysis/CFG.cpp
  60. 2 2
      lib/Analysis/CodeInjector.cpp
  61. 1 1
      lib/Analysis/Consumed.cpp
  62. 1 1
      lib/Analysis/FormatString.cpp
  63. 1 1
      lib/Analysis/ProgramPoint.cpp
  64. 2 2
      lib/Analysis/ThreadSafety.cpp
  65. 2 2
      lib/Analysis/UninitializedValues.cpp
  66. 2 2
      lib/Basic/Diagnostic.cpp
  67. 2 2
      lib/Basic/FileManager.cpp
  68. 2 2
      lib/Basic/IdentifierTable.cpp
  69. 1 1
      lib/Basic/SourceManager.cpp
  70. 1 1
      lib/Basic/TargetInfo.cpp
  71. 5 5
      lib/Basic/VirtualFileSystem.cpp
  72. 1 1
      lib/CodeGen/CGBlocks.cpp
  73. 1 1
      lib/CodeGen/CGCUDARuntime.cpp
  74. 1 1
      lib/CodeGen/CGCXXABI.cpp
  75. 1 1
      lib/CodeGen/CGCall.cpp
  76. 1 1
      lib/CodeGen/CGObjC.cpp
  77. 1 1
      lib/CodeGen/CGOpenCLRuntime.cpp
  78. 1 1
      lib/CodeGen/CGOpenMPRuntime.h
  79. 1 1
      lib/CodeGen/CodeGenFunction.cpp
  80. 2 1
      lib/CodeGen/CodeGenTBAA.cpp
  81. 1 1
      lib/CodeGen/TargetInfo.cpp
  82. 2 1
      lib/Driver/Tool.cpp
  83. 2 1
      lib/Driver/ToolChain.cpp
  84. 6 6
      lib/Driver/ToolChains.cpp
  85. 1 1
      lib/Format/BreakableToken.h
  86. 1 1
      lib/Format/FormatToken.cpp
  87. 1 1
      lib/Format/UnwrappedLineFormatter.cpp
  88. 1 1
      lib/Format/UnwrappedLineParser.cpp
  89. 1 1
      lib/Format/UnwrappedLineParser.h
  90. 1 1
      lib/Frontend/ASTUnit.cpp
  91. 2 2
      lib/Frontend/CacheTokens.cpp
  92. 1 1
      lib/Frontend/CompilerInvocation.cpp
  93. 1 1
      lib/Frontend/DependencyFile.cpp
  94. 2 2
      lib/Frontend/DiagnosticRenderer.cpp
  95. 1 1
      lib/Frontend/FrontendAction.cpp
  96. 1 1
      lib/Frontend/MultiplexConsumer.cpp
  97. 1 1
      lib/Frontend/Rewrite/FixItRewriter.cpp
  98. 1 1
      lib/Frontend/Rewrite/FrontendActions.cpp
  99. 1 1
      lib/Frontend/Rewrite/RewriteModernObjC.cpp
  100. 2 2
      lib/Frontend/Rewrite/RewriteObjC.cpp

+ 1 - 1
include/clang/AST/ASTConsumer.h

@@ -43,7 +43,7 @@ class ASTConsumer {
 public:
 public:
   ASTConsumer() : SemaConsumer(false) { }
   ASTConsumer() : SemaConsumer(false) { }
 
 
-  virtual ~ASTConsumer() = default;
+  virtual ~ASTConsumer() {}
 
 
   /// Initialize - This is called to initialize the consumer, providing the
   /// Initialize - This is called to initialize the consumer, providing the
   /// ASTContext.
   /// ASTContext.

+ 2 - 2
include/clang/AST/CanonicalType.h

@@ -333,7 +333,7 @@ template<typename T>
 class CanProxy : public CanProxyAdaptor<T> {
 class CanProxy : public CanProxyAdaptor<T> {
 public:
 public:
   /// \brief Build a NULL proxy.
   /// \brief Build a NULL proxy.
-  CanProxy() = default;
+  CanProxy() { }
 
 
   /// \brief Build a proxy to the given canonical type.
   /// \brief Build a proxy to the given canonical type.
   CanProxy(CanQual<T> Stored) { this->Stored = Stored; }
   CanProxy(CanQual<T> Stored) { this->Stored = Stored; }
@@ -389,7 +389,7 @@ struct CanTypeIterator
           CanQualType,
           CanQualType,
           typename std::iterator_traits<InputIterator>::difference_type,
           typename std::iterator_traits<InputIterator>::difference_type,
           CanProxy<Type>, CanQualType> {
           CanProxy<Type>, CanQualType> {
-  CanTypeIterator() = default;
+  CanTypeIterator() {}
   explicit CanTypeIterator(InputIterator Iter)
   explicit CanTypeIterator(InputIterator Iter)
       : CanTypeIterator::iterator_adaptor_base(std::move(Iter)) {}
       : CanTypeIterator::iterator_adaptor_base(std::move(Iter)) {}
 
 

+ 1 - 1
include/clang/AST/DeclFriend.h

@@ -180,7 +180,7 @@ class CXXRecordDecl::friend_iterator {
   friend class CXXRecordDecl;
   friend class CXXRecordDecl;
   explicit friend_iterator(FriendDecl *Ptr) : Ptr(Ptr) {}
   explicit friend_iterator(FriendDecl *Ptr) : Ptr(Ptr) {}
 public:
 public:
-  friend_iterator() = default;
+  friend_iterator() {}
 
 
   typedef FriendDecl *value_type;
   typedef FriendDecl *value_type;
   typedef FriendDecl *reference;
   typedef FriendDecl *reference;

+ 1 - 1
include/clang/AST/DeclTemplate.h

@@ -664,7 +664,7 @@ protected:
             typename std::iterator_traits<typename llvm::FoldingSetVector<
             typename std::iterator_traits<typename llvm::FoldingSetVector<
                 EntryType>::iterator>::iterator_category,
                 EntryType>::iterator>::iterator_category,
             DeclType *, ptrdiff_t, DeclType *, DeclType *> {
             DeclType *, ptrdiff_t, DeclType *, DeclType *> {
-    SpecIterator() = default;
+    SpecIterator() {}
     explicit SpecIterator(
     explicit SpecIterator(
         typename llvm::FoldingSetVector<EntryType>::iterator SetIter)
         typename llvm::FoldingSetVector<EntryType>::iterator SetIter)
         : SpecIterator::iterator_adaptor_base(std::move(SetIter)) {}
         : SpecIterator::iterator_adaptor_base(std::move(SetIter)) {}

+ 2 - 2
include/clang/AST/Expr.h

@@ -337,7 +337,7 @@ public:
     {}
     {}
 
 
   public:
   public:
-    Classification() = default;
+    Classification() {}
 
 
     Kinds getKind() const { return static_cast<Kinds>(Kind); }
     Kinds getKind() const { return static_cast<Kinds>(Kind); }
     ModifiableType getModifiable() const {
     ModifiableType getModifiable() const {
@@ -4076,7 +4076,7 @@ public:
     friend class DesignatedInitExpr;
     friend class DesignatedInitExpr;
 
 
   public:
   public:
-    Designator() = default;
+    Designator() {}
 
 
     /// @brief Initializes a field designator.
     /// @brief Initializes a field designator.
     Designator(const IdentifierInfo *FieldName, SourceLocation DotLoc,
     Designator(const IdentifierInfo *FieldName, SourceLocation DotLoc,

+ 1 - 1
include/clang/AST/ExprCXX.h

@@ -2278,7 +2278,7 @@ public:
     : Expr(ArrayTypeTraitExprClass, Empty), ATT(0), Value(false),
     : Expr(ArrayTypeTraitExprClass, Empty), ATT(0), Value(false),
       QueriedType() { }
       QueriedType() { }
 
 
-  virtual ~ArrayTypeTraitExpr() = default;
+  virtual ~ArrayTypeTraitExpr() { }
 
 
   SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
   SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
   SourceLocation getLocEnd() const LLVM_READONLY { return RParen; }
   SourceLocation getLocEnd() const LLVM_READONLY { return RParen; }

+ 1 - 1
include/clang/AST/Mangle.h

@@ -64,7 +64,7 @@ public:
                          ManglerKind Kind)
                          ManglerKind Kind)
       : Context(Context), Diags(Diags), Kind(Kind) {}
       : Context(Context), Diags(Diags), Kind(Kind) {}
 
 
-  virtual ~MangleContext() = default;
+  virtual ~MangleContext() { }
 
 
   ASTContext &getASTContext() const { return Context; }
   ASTContext &getASTContext() const { return Context; }
 
 

+ 1 - 1
include/clang/AST/MangleNumberingContext.h

@@ -32,7 +32,7 @@ class VarDecl;
 /// literals within a particular context.
 /// literals within a particular context.
 class MangleNumberingContext : public RefCountedBase<MangleNumberingContext> {
 class MangleNumberingContext : public RefCountedBase<MangleNumberingContext> {
 public:
 public:
-  virtual ~MangleNumberingContext() = default;
+  virtual ~MangleNumberingContext() {}
 
 
   /// \brief Retrieve the mangling number of a new lambda expression with the
   /// \brief Retrieve the mangling number of a new lambda expression with the
   /// given call operator within this context.
   /// given call operator within this context.

+ 1 - 1
include/clang/AST/Redeclarable.h

@@ -248,7 +248,7 @@ Decl *getPrimaryMergedDecl(Decl *D);
 template<typename decl_type>
 template<typename decl_type>
 class Mergeable {
 class Mergeable {
 public:
 public:
-  Mergeable() = default;
+  Mergeable() {}
 
 
   /// \brief Return the first declaration of this declaration or itself if this
   /// \brief Return the first declaration of this declaration or itself if this
   /// is the only declaration.
   /// is the only declaration.

+ 1 - 1
include/clang/AST/StmtIterator.h

@@ -81,7 +81,7 @@ class StmtIteratorImpl : public StmtIteratorBase,
 protected:
 protected:
   StmtIteratorImpl(const StmtIteratorBase& RHS) : StmtIteratorBase(RHS) {}
   StmtIteratorImpl(const StmtIteratorBase& RHS) : StmtIteratorBase(RHS) {}
 public:
 public:
-  StmtIteratorImpl() = default;
+  StmtIteratorImpl() {}
   StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {}
   StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {}
   StmtIteratorImpl(Decl **dgi, Decl **dge) : StmtIteratorBase(dgi, dge) {}
   StmtIteratorImpl(Decl **dgi, Decl **dge) : StmtIteratorBase(dgi, dge) {}
   StmtIteratorImpl(const VariableArrayType *t) : StmtIteratorBase(t) {}
   StmtIteratorImpl(const VariableArrayType *t) : StmtIteratorBase(t) {}

+ 1 - 1
include/clang/AST/UnresolvedSet.h

@@ -59,7 +59,7 @@ class UnresolvedSetImpl {
   // UnresolvedSet.
   // UnresolvedSet.
 private:
 private:
   template <unsigned N> friend class UnresolvedSet;
   template <unsigned N> friend class UnresolvedSet;
-  UnresolvedSetImpl() = default;
+  UnresolvedSetImpl() {}
   UnresolvedSetImpl(const UnresolvedSetImpl &) {}
   UnresolvedSetImpl(const UnresolvedSetImpl &) {}
 
 
 public:
 public:

+ 1 - 1
include/clang/AST/VTableBuilder.h

@@ -298,7 +298,7 @@ public:
 
 
   bool isMicrosoft() const { return IsMicrosoftABI; }
   bool isMicrosoft() const { return IsMicrosoftABI; }
 
 
-  virtual ~VTableContextBase() = default;
+  virtual ~VTableContextBase() {}
 
 
 protected:
 protected:
   typedef llvm::DenseMap<const CXXMethodDecl *, ThunkInfoVectorTy> ThunksMapTy;
   typedef llvm::DenseMap<const CXXMethodDecl *, ThunkInfoVectorTy> ThunksMapTy;

+ 6 - 6
include/clang/ASTMatchers/ASTMatchersInternal.h

@@ -131,7 +131,7 @@ public:
   /// BoundNodesTree.
   /// BoundNodesTree.
   class Visitor {
   class Visitor {
   public:
   public:
-    virtual ~Visitor() = default;
+    virtual ~Visitor() {}
 
 
     /// \brief Called multiple times during a single call to VisitMatches(...).
     /// \brief Called multiple times during a single call to VisitMatches(...).
     ///
     ///
@@ -209,7 +209,7 @@ public:
 template <typename T>
 template <typename T>
 class MatcherInterface : public DynMatcherInterface {
 class MatcherInterface : public DynMatcherInterface {
 public:
 public:
-  ~MatcherInterface() override = default;
+  ~MatcherInterface() override {}
 
 
   /// \brief Returns true if 'Node' can be matched.
   /// \brief Returns true if 'Node' can be matched.
   ///
   ///
@@ -798,7 +798,7 @@ public:
     AMM_ParentOnly
     AMM_ParentOnly
   };
   };
 
 
-  virtual ~ASTMatchFinder() = default;
+  virtual ~ASTMatchFinder() {}
 
 
   /// \brief Returns true if the given class is directly or indirectly derived
   /// \brief Returns true if the given class is directly or indirectly derived
   /// from a base type matching \c base.
   /// from a base type matching \c base.
@@ -1376,7 +1376,7 @@ class VariadicDynCastAllOfMatcher
         BindableMatcher<SourceT>, Matcher<TargetT>,
         BindableMatcher<SourceT>, Matcher<TargetT>,
         makeDynCastAllOfComposite<SourceT, TargetT> > {
         makeDynCastAllOfComposite<SourceT, TargetT> > {
 public:
 public:
-  VariadicDynCastAllOfMatcher() = default;
+  VariadicDynCastAllOfMatcher() {}
 };
 };
 
 
 /// \brief A \c VariadicAllOfMatcher<T> object is a variadic functor that takes
 /// \brief A \c VariadicAllOfMatcher<T> object is a variadic functor that takes
@@ -1394,7 +1394,7 @@ class VariadicAllOfMatcher : public llvm::VariadicFunction<
                                BindableMatcher<T>, Matcher<T>,
                                BindableMatcher<T>, Matcher<T>,
                                makeAllOfComposite<T> > {
                                makeAllOfComposite<T> > {
 public:
 public:
-  VariadicAllOfMatcher() = default;
+  VariadicAllOfMatcher() {}
 };
 };
 
 
 /// \brief Matches nodes of type \c TLoc for which the inner
 /// \brief Matches nodes of type \c TLoc for which the inner
@@ -1515,7 +1515,7 @@ public:
 
 
   struct Func : public llvm::VariadicFunction<Self, Matcher<InnerTBase>,
   struct Func : public llvm::VariadicFunction<Self, Matcher<InnerTBase>,
                                               &Self::create> {
                                               &Self::create> {
-    Func() = default;
+    Func() {}
   };
   };
 
 
 private:
 private:

+ 1 - 1
include/clang/Analysis/Analyses/FormatString.h

@@ -606,7 +606,7 @@ enum PositionContext { FieldWidthPos = 0, PrecisionPos = 1 };
 
 
 class FormatStringHandler {
 class FormatStringHandler {
 public:
 public:
-  FormatStringHandler() = default;
+  FormatStringHandler() {}
   virtual ~FormatStringHandler();
   virtual ~FormatStringHandler();
 
 
   virtual void HandleNullChar(const char *nullCharacter) {}
   virtual void HandleNullChar(const char *nullCharacter) {}

+ 1 - 1
include/clang/Analysis/Analyses/LiveVariables.h

@@ -53,7 +53,7 @@ public:
   class Observer {
   class Observer {
     virtual void anchor();
     virtual void anchor();
   public:
   public:
-    virtual ~Observer() = default;
+    virtual ~Observer() {}
     
     
     /// A callback invoked right before invoking the
     /// A callback invoked right before invoking the
     ///  liveness transfer function on the given statement.
     ///  liveness transfer function on the given statement.

+ 1 - 1
include/clang/Analysis/Analyses/ReachableCode.h

@@ -48,7 +48,7 @@ enum UnreachableKind {
 class Callback {
 class Callback {
   virtual void anchor();
   virtual void anchor();
 public:
 public:
-  virtual ~Callback() = default;
+  virtual ~Callback() {}
   virtual void HandleUnreachable(UnreachableKind UK,
   virtual void HandleUnreachable(UnreachableKind UK,
                                  SourceLocation L,
                                  SourceLocation L,
                                  SourceRange ConditionVal,
                                  SourceRange ConditionVal,

+ 1 - 1
include/clang/Analysis/Analyses/ThreadSafetyTraverse.h

@@ -176,7 +176,7 @@ template <class Self>
 class VisitReducer : public Traversal<Self, VisitReducerBase>,
 class VisitReducer : public Traversal<Self, VisitReducerBase>,
                      public VisitReducerBase {
                      public VisitReducerBase {
 public:
 public:
-  VisitReducer() = default;
+  VisitReducer() {}
 
 
 public:
 public:
   R_SExpr reduceNull() { return true; }
   R_SExpr reduceNull() { return true; }

+ 1 - 1
include/clang/Analysis/Analyses/UninitializedValues.h

@@ -99,7 +99,7 @@ public:
 
 
 class UninitVariablesHandler {
 class UninitVariablesHandler {
 public:
 public:
-  UninitVariablesHandler() = default;
+  UninitVariablesHandler() {}
   virtual ~UninitVariablesHandler();
   virtual ~UninitVariablesHandler();
 
 
   /// Called when the uninitialized variable is used at the given expression.
   /// Called when the uninitialized variable is used at the given expression.

+ 4 - 4
include/clang/Analysis/AnalysisContext.h

@@ -44,7 +44,7 @@ namespace idx { class TranslationUnit; }
 /// to AnalysisDeclContext.
 /// to AnalysisDeclContext.
 class ManagedAnalysis {
 class ManagedAnalysis {
 protected:
 protected:
-  ManagedAnalysis() = default;
+  ManagedAnalysis() {}
 public:
 public:
   virtual ~ManagedAnalysis();
   virtual ~ManagedAnalysis();
 
 
@@ -289,7 +289,7 @@ class StackFrameContext : public LocationContext {
       Block(blk), Index(idx) {}
       Block(blk), Index(idx) {}
 
 
 public:
 public:
-  ~StackFrameContext() override = default;
+  ~StackFrameContext() override {}
 
 
   const Stmt *getCallSite() const { return CallSite; }
   const Stmt *getCallSite() const { return CallSite; }
 
 
@@ -324,7 +324,7 @@ class ScopeContext : public LocationContext {
     : LocationContext(Scope, ctx, parent), Enter(s) {}
     : LocationContext(Scope, ctx, parent), Enter(s) {}
 
 
 public:
 public:
-  ~ScopeContext() override = default;
+  ~ScopeContext() override {}
 
 
   void Profile(llvm::FoldingSetNodeID &ID) override;
   void Profile(llvm::FoldingSetNodeID &ID) override;
 
 
@@ -352,7 +352,7 @@ class BlockInvocationContext : public LocationContext {
     : LocationContext(Block, ctx, parent), BD(bd), ContextData(contextData) {}
     : LocationContext(Block, ctx, parent), BD(bd), ContextData(contextData) {}
 
 
 public:
 public:
-  ~BlockInvocationContext() override = default;
+  ~BlockInvocationContext() override {}
 
 
   const BlockDecl *getBlockDecl() const { return BD; }
   const BlockDecl *getBlockDecl() const { return BD; }
   
   

+ 2 - 2
include/clang/Analysis/CFG.h

@@ -704,11 +704,11 @@ public:
 /// operator error is found when building the CFG.
 /// operator error is found when building the CFG.
 class CFGCallback {
 class CFGCallback {
 public:
 public:
-  CFGCallback() = default;
+  CFGCallback() {}
   virtual void compareAlwaysTrue(const BinaryOperator *B, bool isAlwaysTrue) {}
   virtual void compareAlwaysTrue(const BinaryOperator *B, bool isAlwaysTrue) {}
   virtual void compareBitwiseEquality(const BinaryOperator *B,
   virtual void compareBitwiseEquality(const BinaryOperator *B,
                                       bool isAlwaysTrue) {}
                                       bool isAlwaysTrue) {}
-  virtual ~CFGCallback() = default;
+  virtual ~CFGCallback() {}
 };
 };
 
 
 /// CFG - Represents a source-level, intra-procedural CFG that represents the
 /// CFG - Represents a source-level, intra-procedural CFG that represents the

+ 1 - 1
include/clang/Basic/FileSystemStatCache.h

@@ -51,7 +51,7 @@ protected:
   std::unique_ptr<FileSystemStatCache> NextStatCache;
   std::unique_ptr<FileSystemStatCache> NextStatCache;
 
 
 public:
 public:
-  virtual ~FileSystemStatCache() = default;
+  virtual ~FileSystemStatCache() {}
   
   
   enum LookupResult {
   enum LookupResult {
     CacheExists,   ///< We know the file exists and its cached stat data.
     CacheExists,   ///< We know the file exists and its cached stat data.

+ 1 - 1
include/clang/Basic/IdentifierTable.h

@@ -385,7 +385,7 @@ private:
   void operator=(const IdentifierIterator &) = delete;
   void operator=(const IdentifierIterator &) = delete;
 
 
 protected:
 protected:
-  IdentifierIterator() = default;
+  IdentifierIterator() { }
   
   
 public:
 public:
   virtual ~IdentifierIterator();
   virtual ~IdentifierIterator();

+ 1 - 1
include/clang/Driver/Job.h

@@ -88,7 +88,7 @@ public:
   // FIXME: This really shouldn't be copyable, but is currently copied in some
   // FIXME: This really shouldn't be copyable, but is currently copied in some
   // error handling in Driver::generateCompilationDiagnostics.
   // error handling in Driver::generateCompilationDiagnostics.
   Command(const Command &) = default;
   Command(const Command &) = default;
-  virtual ~Command() = default;
+  virtual ~Command() {}
 
 
   virtual void Print(llvm::raw_ostream &OS, const char *Terminator, bool Quote,
   virtual void Print(llvm::raw_ostream &OS, const char *Terminator, bool Quote,
                      CrashReportInfo *CrashInfo = nullptr) const;
                      CrashReportInfo *CrashInfo = nullptr) const;

+ 1 - 1
include/clang/Edit/EditsReceiver.h

@@ -20,7 +20,7 @@ namespace edit {
 
 
 class EditsReceiver {
 class EditsReceiver {
 public:
 public:
-  virtual ~EditsReceiver() = default;
+  virtual ~EditsReceiver() { }
 
 
   virtual void insert(SourceLocation loc, StringRef text) = 0;
   virtual void insert(SourceLocation loc, StringRef text) = 0;
   virtual void replace(CharSourceRange range, StringRef text) = 0;
   virtual void replace(CharSourceRange range, StringRef text) = 0;

+ 2 - 2
include/clang/Frontend/SerializedDiagnosticReader.h

@@ -58,8 +58,8 @@ struct Location {
 /// the various constructs that are found in serialized diagnostics.
 /// the various constructs that are found in serialized diagnostics.
 class SerializedDiagnosticReader {
 class SerializedDiagnosticReader {
 public:
 public:
-  SerializedDiagnosticReader() = default;
-  virtual ~SerializedDiagnosticReader() = default;
+  SerializedDiagnosticReader() {}
+  virtual ~SerializedDiagnosticReader() {}
 
 
   /// \brief Read the diagnostics in \c File
   /// \brief Read the diagnostics in \c File
   std::error_code readDiagnostics(StringRef File);
   std::error_code readDiagnostics(StringRef File);

+ 1 - 1
include/clang/Frontend/VerifyDiagnosticConsumer.h

@@ -161,7 +161,7 @@ public:
     unsigned Min, Max;
     unsigned Min, Max;
     bool MatchAnyLine;
     bool MatchAnyLine;
 
 
-    virtual ~Directive() = default;
+    virtual ~Directive() { }
 
 
     // Returns true if directive text is valid.
     // Returns true if directive text is valid.
     // Otherwise returns false and populates E.
     // Otherwise returns false and populates E.

+ 1 - 1
include/clang/Lex/ModuleMap.h

@@ -40,7 +40,7 @@ class ModuleMapParser;
 /// reads module map files.
 /// reads module map files.
 class ModuleMapCallbacks {
 class ModuleMapCallbacks {
 public:
 public:
-  virtual ~ModuleMapCallbacks() = default;
+  virtual ~ModuleMapCallbacks() {}
 
 
   /// \brief Called when a module map file has been read.
   /// \brief Called when a module map file has been read.
   ///
   ///

+ 1 - 1
include/clang/Lex/PTHLexer.h

@@ -64,7 +64,7 @@ protected:
   PTHLexer(Preprocessor& pp, FileID FID, const unsigned char *D,
   PTHLexer(Preprocessor& pp, FileID FID, const unsigned char *D,
            const unsigned char* ppcond, PTHManager &PM);
            const unsigned char* ppcond, PTHManager &PM);
 public:
 public:
-  ~PTHLexer() override = default;
+  ~PTHLexer() override {}
 
 
   /// Lex - Return the next token.
   /// Lex - Return the next token.
   bool Lex(Token &Tok);
   bool Lex(Token &Tok);

+ 1 - 1
include/clang/Lex/PreprocessorLexer.h

@@ -81,7 +81,7 @@ protected:
       ParsingFilename(false),
       ParsingFilename(false),
       LexingRawMode(false) {}
       LexingRawMode(false) {}
 
 
-  virtual ~PreprocessorLexer() = default;
+  virtual ~PreprocessorLexer() {}
 
 
   virtual void IndirectLex(Token& Result) = 0;
   virtual void IndirectLex(Token& Result) = 0;
 
 

+ 3 - 3
include/clang/Sema/Sema.h

@@ -1313,7 +1313,7 @@ public:
     TypeDiagnoser(bool Suppressed = false) : Suppressed(Suppressed) { }
     TypeDiagnoser(bool Suppressed = false) : Suppressed(Suppressed) { }
 
 
     virtual void diagnose(Sema &S, SourceLocation Loc, QualType T) = 0;
     virtual void diagnose(Sema &S, SourceLocation Loc, QualType T) = 0;
-    virtual ~TypeDiagnoser() = default;
+    virtual ~TypeDiagnoser() {}
   };
   };
 
 
   static int getPrintable(int I) { return I; }
   static int getPrintable(int I) { return I; }
@@ -2297,7 +2297,7 @@ public:
     virtual SemaDiagnosticBuilder diagnoseConversion(
     virtual SemaDiagnosticBuilder diagnoseConversion(
         Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0;
         Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0;
 
 
-    virtual ~ContextualImplicitConverter() = default;
+    virtual ~ContextualImplicitConverter() {}
   };
   };
 
 
   class ICEConvertDiagnoser : public ContextualImplicitConverter {
   class ICEConvertDiagnoser : public ContextualImplicitConverter {
@@ -8597,7 +8597,7 @@ public:
 
 
     virtual void diagnoseNotICE(Sema &S, SourceLocation Loc, SourceRange SR) =0;
     virtual void diagnoseNotICE(Sema &S, SourceLocation Loc, SourceRange SR) =0;
     virtual void diagnoseFold(Sema &S, SourceLocation Loc, SourceRange SR);
     virtual void diagnoseFold(Sema &S, SourceLocation Loc, SourceRange SR);
-    virtual ~VerifyICEDiagnoser() = default;
+    virtual ~VerifyICEDiagnoser() { }
   };
   };
 
 
   /// VerifyIntegerConstantExpression - Verifies that an expression is an ICE,
   /// VerifyIntegerConstantExpression - Verifies that an expression is an ICE,

+ 1 - 1
include/clang/Sema/TypoCorrection.h

@@ -255,7 +255,7 @@ public:
         IsObjCIvarLookup(false), IsAddressOfOperand(false), Typo(Typo),
         IsObjCIvarLookup(false), IsAddressOfOperand(false), Typo(Typo),
         TypoNNS(TypoNNS) {}
         TypoNNS(TypoNNS) {}
 
 
-  virtual ~CorrectionCandidateCallback() = default;
+  virtual ~CorrectionCandidateCallback() {}
 
 
   /// \brief Simple predicate used by the default RankCandidate to
   /// \brief Simple predicate used by the default RankCandidate to
   /// determine whether to return an edit distance of 0 or InvalidDistance.
   /// determine whether to return an edit distance of 0 or InvalidDistance.

+ 2 - 2
include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h

@@ -57,7 +57,7 @@ public:
   class NodeResolver {
   class NodeResolver {
     virtual void anchor();
     virtual void anchor();
   public:
   public:
-    virtual ~NodeResolver() = default;
+    virtual ~NodeResolver() {}
     virtual const ExplodedNode*
     virtual const ExplodedNode*
             getOriginalNode(const ExplodedNode *N) = 0;
             getOriginalNode(const ExplodedNode *N) = 0;
   };
   };
@@ -529,7 +529,7 @@ class BugReporterContext {
 public:
 public:
   BugReporterContext(GRBugReporter& br) : BR(br) {}
   BugReporterContext(GRBugReporter& br) : BR(br) {}
 
 
-  virtual ~BugReporterContext() = default;
+  virtual ~BugReporterContext() {}
 
 
   GRBugReporter& getBugReporter() { return BR; }
   GRBugReporter& getBugReporter() { return BR; }
 
 

+ 1 - 1
include/clang/StaticAnalyzer/Core/BugReporter/BugType.h

@@ -42,7 +42,7 @@ public:
   BugType(const CheckerBase *checker, StringRef name, StringRef cat)
   BugType(const CheckerBase *checker, StringRef name, StringRef cat)
       : Check(checker->getCheckName()), Name(name), Category(cat),
       : Check(checker->getCheckName()), Name(name), Category(cat),
         SuppressonSink(false) {}
         SuppressonSink(false) {}
-  virtual ~BugType() = default;
+  virtual ~BugType() {}
 
 
   // FIXME: Should these be made strings as well?
   // FIXME: Should these be made strings as well?
   StringRef getName() const { return Name; }
   StringRef getName() const { return Name; }

+ 1 - 1
include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h

@@ -481,7 +481,7 @@ private:
 
 
 public:
 public:
   StackHintGeneratorForSymbol(SymbolRef S, StringRef M) : Sym(S), Msg(M) {}
   StackHintGeneratorForSymbol(SymbolRef S, StringRef M) : Sym(S), Msg(M) {}
-  ~StackHintGeneratorForSymbol() override = default;
+  ~StackHintGeneratorForSymbol() override {}
 
 
   /// \brief Search the call expression for the symbol Sym and dispatch the
   /// \brief Search the call expression for the symbol Sym and dispatch the
   /// 'getMessageForX()' methods to construct a specific message.
   /// 'getMessageForX()' methods to construct a specific message.

+ 1 - 1
include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h

@@ -168,7 +168,7 @@ protected:
                  RegionAndSymbolInvalidationTraits *ETraits) const {}
                  RegionAndSymbolInvalidationTraits *ETraits) const {}
 
 
 public:
 public:
-  virtual ~CallEvent() = default;
+  virtual ~CallEvent() {}
 
 
   /// \brief Returns the kind of call this is.
   /// \brief Returns the kind of call this is.
   virtual Kind getKind() const = 0;
   virtual Kind getKind() const = 0;

+ 1 - 1
include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h

@@ -254,7 +254,7 @@ public:
     assert(hasNoSinksInFrontier());
     assert(hasNoSinksInFrontier());
   }
   }
 
 
-  virtual ~NodeBuilder() = default;
+  virtual ~NodeBuilder() {}
 
 
   /// \brief Generates a node in the ExplodedGraph.
   /// \brief Generates a node in the ExplodedGraph.
   ExplodedNode *generateNode(const ProgramPoint &PP,
   ExplodedNode *generateNode(const ProgramPoint &PP,

+ 1 - 1
include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h

@@ -68,7 +68,7 @@ public:
       ArrayIndexTy(context.IntTy),
       ArrayIndexTy(context.IntTy),
       ArrayIndexWidth(context.getTypeSize(ArrayIndexTy)) {}
       ArrayIndexWidth(context.getTypeSize(ArrayIndexTy)) {}
 
 
-  virtual ~SValBuilder() = default;
+  virtual ~SValBuilder() {}
 
 
   bool haveSameType(const SymExpr *Sym1, const SymExpr *Sym2) {
   bool haveSameType(const SymExpr *Sym1, const SymExpr *Sym2) {
     return haveSameType(Sym1->getType(), Sym2->getType());
     return haveSameType(Sym1->getType(), Sym2->getType());

+ 1 - 1
include/clang/StaticAnalyzer/Core/PathSensitive/Store.h

@@ -49,7 +49,7 @@ protected:
   StoreManager(ProgramStateManager &stateMgr);
   StoreManager(ProgramStateManager &stateMgr);
 
 
 public:
 public:
-  virtual ~StoreManager() = default;
+  virtual ~StoreManager() {}
 
 
   /// Return the value bound to specified location in a given state.
   /// Return the value bound to specified location in a given state.
   /// \param[in] store The analysis state.
   /// \param[in] store The analysis state.

+ 1 - 1
include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h

@@ -43,7 +43,7 @@ class MemRegion;
 class SubEngine {
 class SubEngine {
   virtual void anchor();
   virtual void anchor();
 public:
 public:
-  virtual ~SubEngine() = default;
+  virtual ~SubEngine() {}
 
 
   virtual ProgramStateRef getInitialState(const LocationContext *InitLoc) = 0;
   virtual ProgramStateRef getInitialState(const LocationContext *InitLoc) = 0;
 
 

+ 2 - 2
include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h

@@ -57,7 +57,7 @@ protected:
   SymExpr(Kind k) : K(k) {}
   SymExpr(Kind k) : K(k) {}
 
 
 public:
 public:
-  virtual ~SymExpr() = default;
+  virtual ~SymExpr() {}
 
 
   Kind getKind() const { return K; }
   Kind getKind() const { return K; }
 
 
@@ -109,7 +109,7 @@ protected:
   SymbolData(Kind k, SymbolID sym) : SymExpr(k), Sym(sym) {}
   SymbolData(Kind k, SymbolID sym) : SymExpr(k), Sym(sym) {}
 
 
 public:
 public:
-  ~SymbolData() override = default;
+  ~SymbolData() override {}
 
 
   SymbolID getSymbolID() const { return Sym; }
   SymbolID getSymbolID() const { return Sym; }
 
 

+ 1 - 1
include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h

@@ -37,7 +37,7 @@ template<> struct ProgramStateTrait<TaintMap>
 
 
 class TaintManager {
 class TaintManager {
 
 
-  TaintManager() = default;
+  TaintManager() {}
 };
 };
 
 
 }
 }

+ 1 - 1
include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h

@@ -82,7 +82,7 @@ public:
 
 
   class Visitor {
   class Visitor {
   public:
   public:
-    Visitor() = default;
+    Visitor() {}
     virtual ~Visitor();
     virtual ~Visitor();
     virtual bool visit(const WorkListUnit &U) = 0;
     virtual bool visit(const WorkListUnit &U) = 0;
   };
   };

+ 1 - 1
include/clang/Tooling/FileMatchTrie.h

@@ -25,7 +25,7 @@ namespace clang {
 namespace tooling {
 namespace tooling {
 
 
 struct PathComparator {
 struct PathComparator {
-  virtual ~PathComparator() = default;
+  virtual ~PathComparator() {}
   virtual bool equivalent(StringRef FileA, StringRef FileB) const = 0;
   virtual bool equivalent(StringRef FileA, StringRef FileB) const = 0;
 };
 };
 class FileMatchTrieNode;
 class FileMatchTrieNode;

+ 1 - 1
include/clang/Tooling/Tooling.h

@@ -110,7 +110,7 @@ std::unique_ptr<FrontendActionFactory> newFrontendActionFactory();
 /// newFrontendActionFactory.
 /// newFrontendActionFactory.
 class SourceFileCallbacks {
 class SourceFileCallbacks {
 public:
 public:
-  virtual ~SourceFileCallbacks() = default;
+  virtual ~SourceFileCallbacks() {}
 
 
   /// \brief Called before a source file is processed by a FrontEndAction.
   /// \brief Called before a source file is processed by a FrontEndAction.
   /// \see clang::FrontendAction::BeginSourceFileAction
   /// \see clang::FrontendAction::BeginSourceFileAction

+ 1 - 1
lib/ARCMigrate/ARCMT.cpp

@@ -498,7 +498,7 @@ public:
 } // end anonymous namespace.
 } // end anonymous namespace.
 
 
 /// \brief Anchor for VTable.
 /// \brief Anchor for VTable.
-MigrationProcess::RewriteListener::~RewriteListener() = default;
+MigrationProcess::RewriteListener::~RewriteListener() { }
 
 
 MigrationProcess::MigrationProcess(
 MigrationProcess::MigrationProcess(
     const CompilerInvocation &CI,
     const CompilerInvocation &CI,

+ 1 - 1
lib/ARCMigrate/TransformActions.cpp

@@ -594,7 +594,7 @@ SourceLocation TransformActionsImpl::getLocForEndOfToken(SourceLocation loc,
   return PP.getLocForEndOfToken(loc);
   return PP.getLocForEndOfToken(loc);
 }
 }
 
 
-TransformActions::RewriteReceiver::~RewriteReceiver() = default;
+TransformActions::RewriteReceiver::~RewriteReceiver() { }
 
 
 TransformActions::TransformActions(DiagnosticsEngine &diag,
 TransformActions::TransformActions(DiagnosticsEngine &diag,
                                    CapturedDiagList &capturedDiags,
                                    CapturedDiagList &capturedDiags,

+ 1 - 1
lib/ARCMigrate/Transforms.cpp

@@ -27,7 +27,7 @@ using namespace clang;
 using namespace arcmt;
 using namespace arcmt;
 using namespace trans;
 using namespace trans;
 
 
-ASTTraverser::~ASTTraverser() = default;
+ASTTraverser::~ASTTraverser() { }
 
 
 bool MigrationPass::CFBridgingFunctionsDefined() {
 bool MigrationPass::CFBridgingFunctionsDefined() {
   if (!EnableCFBridgeFns.hasValue())
   if (!EnableCFBridgeFns.hasValue())

+ 2 - 2
lib/AST/ASTContext.cpp

@@ -7914,7 +7914,7 @@ QualType ASTContext::getCorrespondingUnsignedType(QualType T) const {
   }
   }
 }
 }
 
 
-ASTMutationListener::~ASTMutationListener() = default;
+ASTMutationListener::~ASTMutationListener() { }
 
 
 void ASTMutationListener::DeducedReturnType(const FunctionDecl *FD,
 void ASTMutationListener::DeducedReturnType(const FunctionDecl *FD,
                                             QualType ReturnType) {}
                                             QualType ReturnType) {}
@@ -8502,7 +8502,7 @@ MangleContext *ASTContext::createMangleContext() {
   llvm_unreachable("Unsupported ABI");
   llvm_unreachable("Unsupported ABI");
 }
 }
 
 
-CXXABI::~CXXABI() = default;
+CXXABI::~CXXABI() {}
 
 
 size_t ASTContext::getSideTableAllocatedMemory() const {
 size_t ASTContext::getSideTableAllocatedMemory() const {
   return ASTRecordLayouts.getMemorySize() +
   return ASTRecordLayouts.getMemorySize() +

+ 1 - 1
lib/AST/ASTImporter.cpp

@@ -5344,7 +5344,7 @@ ASTImporter::ASTImporter(ASTContext &ToContext, FileManager &ToFileManager,
     = ToContext.getTranslationUnitDecl();
     = ToContext.getTranslationUnitDecl();
 }
 }
 
 
-ASTImporter::~ASTImporter() = default;
+ASTImporter::~ASTImporter() { }
 
 
 QualType ASTImporter::Import(QualType FromT) {
 QualType ASTImporter::Import(QualType FromT) {
   if (FromT.isNull())
   if (FromT.isNull())

+ 2 - 2
lib/AST/DeclBase.cpp

@@ -236,7 +236,7 @@ void PrettyStackTraceDecl::print(raw_ostream &OS) const {
 //===----------------------------------------------------------------------===//
 //===----------------------------------------------------------------------===//
 
 
 // Out-of-line virtual method providing a home for Decl.
 // Out-of-line virtual method providing a home for Decl.
-Decl::~Decl() = default;
+Decl::~Decl() { }
 
 
 void Decl::setDeclContext(DeclContext *DC) {
 void Decl::setDeclContext(DeclContext *DC) {
   DeclCtx = DC;
   DeclCtx = DC;
@@ -836,7 +836,7 @@ bool DeclContext::classof(const Decl *D) {
   }
   }
 }
 }
 
 
-DeclContext::~DeclContext() = default;
+DeclContext::~DeclContext() { }
 
 
 /// \brief Find the parent context of this context that will be
 /// \brief Find the parent context of this context that will be
 /// used for unqualified name lookup.
 /// used for unqualified name lookup.

+ 1 - 1
lib/AST/ExternalASTSource.cpp

@@ -21,7 +21,7 @@
 
 
 using namespace clang;
 using namespace clang;
 
 
-ExternalASTSource::~ExternalASTSource() = default;
+ExternalASTSource::~ExternalASTSource() { }
 
 
 llvm::Optional<ExternalASTSource::ASTSourceDescriptor>
 llvm::Optional<ExternalASTSource::ASTSourceDescriptor>
 ExternalASTSource::getSourceDescriptor(unsigned ID) {
 ExternalASTSource::getSourceDescriptor(unsigned ID) {

+ 1 - 1
lib/AST/StmtPrinter.cpp

@@ -2338,4 +2338,4 @@ void Stmt::printPretty(raw_ostream &OS,
 //===----------------------------------------------------------------------===//
 //===----------------------------------------------------------------------===//
 
 
 // Implement virtual destructor.
 // Implement virtual destructor.
-PrinterHelper::~PrinterHelper() = default;
+PrinterHelper::~PrinterHelper() {}

+ 1 - 1
lib/AST/VTableBuilder.cpp

@@ -2229,7 +2229,7 @@ VTableLayout::VTableLayout(uint64_t NumVTableComponents,
   });
   });
 }
 }
 
 
-VTableLayout::~VTableLayout() = default;
+VTableLayout::~VTableLayout() { }
 
 
 ItaniumVTableContext::ItaniumVTableContext(ASTContext &Context)
 ItaniumVTableContext::ItaniumVTableContext(ASTContext &Context)
     : VTableContextBase(/*MS=*/false) {}
     : VTableContextBase(/*MS=*/false) {}

+ 3 - 3
lib/ASTMatchers/ASTMatchFinder.cpp

@@ -902,13 +902,13 @@ MatchFinder::MatchResult::MatchResult(const BoundNodes &Nodes,
   : Nodes(Nodes), Context(Context),
   : Nodes(Nodes), Context(Context),
     SourceManager(&Context->getSourceManager()) {}
     SourceManager(&Context->getSourceManager()) {}
 
 
-MatchFinder::MatchCallback::~MatchCallback() = default;
-MatchFinder::ParsingDoneTestCallback::~ParsingDoneTestCallback() = default;
+MatchFinder::MatchCallback::~MatchCallback() {}
+MatchFinder::ParsingDoneTestCallback::~ParsingDoneTestCallback() {}
 
 
 MatchFinder::MatchFinder(MatchFinderOptions Options)
 MatchFinder::MatchFinder(MatchFinderOptions Options)
     : Options(std::move(Options)), ParsingDone(nullptr) {}
     : Options(std::move(Options)), ParsingDone(nullptr) {}
 
 
-MatchFinder::~MatchFinder() = default;
+MatchFinder::~MatchFinder() {}
 
 
 void MatchFinder::addMatcher(const DeclarationMatcher &NodeMatch,
 void MatchFinder::addMatcher(const DeclarationMatcher &NodeMatch,
                              MatchCallback *Action) {
                              MatchCallback *Action) {

+ 2 - 2
lib/ASTMatchers/Dynamic/Marshallers.h

@@ -103,7 +103,7 @@ public:
 /// arguments, and various other methods for type introspection.
 /// arguments, and various other methods for type introspection.
 class MatcherDescriptor {
 class MatcherDescriptor {
 public:
 public:
-  virtual ~MatcherDescriptor() = default;
+  virtual ~MatcherDescriptor() {}
   virtual VariantMatcher create(SourceRange NameRange,
   virtual VariantMatcher create(SourceRange NameRange,
                                 ArrayRef<ParserValue> Args,
                                 ArrayRef<ParserValue> Args,
                                 Diagnostics *Error) const = 0;
                                 Diagnostics *Error) const = 0;
@@ -491,7 +491,7 @@ public:
   OverloadedMatcherDescriptor(ArrayRef<MatcherDescriptor *> Callbacks)
   OverloadedMatcherDescriptor(ArrayRef<MatcherDescriptor *> Callbacks)
       : Overloads(Callbacks.begin(), Callbacks.end()) {}
       : Overloads(Callbacks.begin(), Callbacks.end()) {}
 
 
-  ~OverloadedMatcherDescriptor() override = default;
+  ~OverloadedMatcherDescriptor() override {}
 
 
   VariantMatcher create(SourceRange NameRange,
   VariantMatcher create(SourceRange NameRange,
                         ArrayRef<ParserValue> Args,
                         ArrayRef<ParserValue> Args,

+ 2 - 2
lib/ASTMatchers/Dynamic/Parser.cpp

@@ -257,7 +257,7 @@ private:
   const char *CodeCompletionLocation;
   const char *CodeCompletionLocation;
 };
 };
 
 
-Parser::Sema::~Sema() = default;
+Parser::Sema::~Sema() {}
 
 
 std::vector<ArgKind> Parser::Sema::getAcceptedCompletionTypes(
 std::vector<ArgKind> Parser::Sema::getAcceptedCompletionTypes(
     llvm::ArrayRef<std::pair<MatcherCtor, unsigned>> Context) {
     llvm::ArrayRef<std::pair<MatcherCtor, unsigned>> Context) {
@@ -526,7 +526,7 @@ Parser::Parser(CodeTokenizer *Tokenizer, Sema *S,
     : Tokenizer(Tokenizer), S(S ? S : &*DefaultRegistrySema),
     : Tokenizer(Tokenizer), S(S ? S : &*DefaultRegistrySema),
       NamedValues(NamedValues), Error(Error) {}
       NamedValues(NamedValues), Error(Error) {}
 
 
-Parser::RegistrySema::~RegistrySema() = default;
+Parser::RegistrySema::~RegistrySema() {}
 
 
 llvm::Optional<MatcherCtor>
 llvm::Optional<MatcherCtor>
 Parser::RegistrySema::lookupMatcherCtor(StringRef MatcherName) {
 Parser::RegistrySema::lookupMatcherCtor(StringRef MatcherName) {

+ 2 - 2
lib/ASTMatchers/Dynamic/VariantValue.cpp

@@ -75,7 +75,7 @@ VariantMatcher::MatcherOps::constructVariadicOperator(
   return DynTypedMatcher::constructVariadic(Op, NodeKind, DynMatchers);
   return DynTypedMatcher::constructVariadic(Op, NodeKind, DynMatchers);
 }
 }
 
 
-VariantMatcher::Payload::~Payload() = default;
+VariantMatcher::Payload::~Payload() {}
 
 
 class VariantMatcher::SinglePayload : public VariantMatcher::Payload {
 class VariantMatcher::SinglePayload : public VariantMatcher::Payload {
 public:
 public:
@@ -113,7 +113,7 @@ public:
   PolymorphicPayload(std::vector<DynTypedMatcher> MatchersIn)
   PolymorphicPayload(std::vector<DynTypedMatcher> MatchersIn)
       : Matchers(std::move(MatchersIn)) {}
       : Matchers(std::move(MatchersIn)) {}
 
 
-  ~PolymorphicPayload() override = default;
+  ~PolymorphicPayload() override {}
 
 
   llvm::Optional<DynTypedMatcher> getSingleMatcher() const override {
   llvm::Optional<DynTypedMatcher> getSingleMatcher() const override {
     if (Matchers.size() != 1)
     if (Matchers.size() != 1)

+ 2 - 2
lib/Analysis/AnalysisDeclContext.cpp

@@ -551,7 +551,7 @@ ManagedAnalysis *&AnalysisDeclContext::getAnalysisImpl(const void *tag) {
 // Cleanup.
 // Cleanup.
 //===----------------------------------------------------------------------===//
 //===----------------------------------------------------------------------===//
 
 
-ManagedAnalysis::~ManagedAnalysis() = default;
+ManagedAnalysis::~ManagedAnalysis() {}
 
 
 AnalysisDeclContext::~AnalysisDeclContext() {
 AnalysisDeclContext::~AnalysisDeclContext() {
   delete forcedBlkExprs;
   delete forcedBlkExprs;
@@ -568,7 +568,7 @@ AnalysisDeclContextManager::~AnalysisDeclContextManager() {
   llvm::DeleteContainerSeconds(Contexts);
   llvm::DeleteContainerSeconds(Contexts);
 }
 }
 
 
-LocationContext::~LocationContext() = default;
+LocationContext::~LocationContext() {}
 
 
 LocationContextManager::~LocationContextManager() {
 LocationContextManager::~LocationContextManager() {
   clear();
   clear();

+ 1 - 1
lib/Analysis/CFG.cpp

@@ -4010,7 +4010,7 @@ public:
     }
     }
   }
   }
 
 
-  ~StmtPrinterHelper() override = default;
+  ~StmtPrinterHelper() override {}
 
 
   const LangOptions &getLangOpts() const { return LangOpts; }
   const LangOptions &getLangOpts() const { return LangOpts; }
   void setBlockID(signed i) { currentBlock = i; }
   void setBlockID(signed i) { currentBlock = i; }

+ 2 - 2
lib/Analysis/CodeInjector.cpp

@@ -11,5 +11,5 @@
 
 
 using namespace clang;
 using namespace clang;
 
 
-CodeInjector::CodeInjector() = default;
-CodeInjector::~CodeInjector() = default;
+CodeInjector::CodeInjector() {}
+CodeInjector::~CodeInjector() {}

+ 1 - 1
lib/Analysis/Consumed.cpp

@@ -52,7 +52,7 @@ using namespace clang;
 using namespace consumed;
 using namespace consumed;
 
 
 // Key method definition
 // Key method definition
-ConsumedWarningsHandlerBase::~ConsumedWarningsHandlerBase() = default;
+ConsumedWarningsHandlerBase::~ConsumedWarningsHandlerBase() {}
 
 
 static SourceLocation getFirstStmtLoc(const CFGBlock *Block) {
 static SourceLocation getFirstStmtLoc(const CFGBlock *Block) {
   // Find the source location of the first statement in the block, if the block
   // Find the source location of the first statement in the block, if the block

+ 1 - 1
lib/Analysis/FormatString.cpp

@@ -26,7 +26,7 @@ using clang::analyze_format_string::ConversionSpecifier;
 using namespace clang;
 using namespace clang;
 
 
 // Key function to FormatStringHandler.
 // Key function to FormatStringHandler.
-FormatStringHandler::~FormatStringHandler() = default;
+FormatStringHandler::~FormatStringHandler() {}
 
 
 //===----------------------------------------------------------------------===//
 //===----------------------------------------------------------------------===//
 // Functions for parsing format strings components in both printf and
 // Functions for parsing format strings components in both printf and

+ 1 - 1
lib/Analysis/ProgramPoint.cpp

@@ -16,7 +16,7 @@
 
 
 using namespace clang;
 using namespace clang;
 
 
-ProgramPointTag::~ProgramPointTag() = default;
+ProgramPointTag::~ProgramPointTag() {}
 
 
 ProgramPoint ProgramPoint::getProgramPoint(const Stmt *S, ProgramPoint::Kind K,
 ProgramPoint ProgramPoint::getProgramPoint(const Stmt *S, ProgramPoint::Kind K,
                                            const LocationContext *LC,
                                            const LocationContext *LC,

+ 2 - 2
lib/Analysis/ThreadSafety.cpp

@@ -48,7 +48,7 @@ using namespace clang;
 using namespace threadSafety;
 using namespace threadSafety;
 
 
 // Key method definition
 // Key method definition
-ThreadSafetyHandler::~ThreadSafetyHandler() = default;
+ThreadSafetyHandler::~ThreadSafetyHandler() {}
 
 
 namespace {
 namespace {
 class TILPrinter :
 class TILPrinter :
@@ -107,7 +107,7 @@ public:
       : CapabilityExpr(CE), LKind(LK), AcquireLoc(Loc), Asserted(Asrt),
       : CapabilityExpr(CE), LKind(LK), AcquireLoc(Loc), Asserted(Asrt),
         Declared(Declrd) {}
         Declared(Declrd) {}
 
 
-  virtual ~FactEntry() = default;
+  virtual ~FactEntry() {}
 
 
   LockKind          kind()       const { return LKind;      }
   LockKind          kind()       const { return LKind;      }
   SourceLocation    loc()        const { return AcquireLoc; }
   SourceLocation    loc()        const { return AcquireLoc; }

+ 2 - 2
lib/Analysis/UninitializedValues.cpp

@@ -837,7 +837,7 @@ struct PruneBlocksHandler : public UninitVariablesHandler {
     : hadUse(numBlocks, false), hadAnyUse(false),
     : hadUse(numBlocks, false), hadAnyUse(false),
       currentBlock(0) {}
       currentBlock(0) {}
 
 
-  ~PruneBlocksHandler() override = default;
+  ~PruneBlocksHandler() override {}
 
 
   /// Records if a CFGBlock had a potential use of an uninitialized variable.
   /// Records if a CFGBlock had a potential use of an uninitialized variable.
   llvm::BitVector hadUse;
   llvm::BitVector hadUse;
@@ -922,4 +922,4 @@ void clang::runUninitializedVariablesAnalysis(
   }
   }
 }
 }
 
 
-UninitVariablesHandler::~UninitVariablesHandler() = default;
+UninitVariablesHandler::~UninitVariablesHandler() {}

+ 2 - 2
lib/Basic/Diagnostic.cpp

@@ -393,7 +393,7 @@ bool DiagnosticsEngine::EmitCurrentDiagnostic(bool Force) {
 }
 }
 
 
 
 
-DiagnosticConsumer::~DiagnosticConsumer() = default;
+DiagnosticConsumer::~DiagnosticConsumer() {}
 
 
 void DiagnosticConsumer::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
 void DiagnosticConsumer::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
                                         const Diagnostic &Info) {
                                         const Diagnostic &Info) {
@@ -981,7 +981,7 @@ bool DiagnosticConsumer::IncludeInDiagnosticCounts() const { return true; }
 
 
 void IgnoringDiagConsumer::anchor() { }
 void IgnoringDiagConsumer::anchor() { }
 
 
-ForwardingDiagnosticConsumer::~ForwardingDiagnosticConsumer() = default;
+ForwardingDiagnosticConsumer::~ForwardingDiagnosticConsumer() {}
 
 
 void ForwardingDiagnosticConsumer::HandleDiagnostic(
 void ForwardingDiagnosticConsumer::HandleDiagnostic(
        DiagnosticsEngine::Level DiagLevel,
        DiagnosticsEngine::Level DiagLevel,

+ 2 - 2
lib/Basic/FileManager.cpp

@@ -605,5 +605,5 @@ void FileManager::PrintStats() const {
 }
 }
 
 
 // Virtual destructors for abstract base classes that need live in Basic.
 // Virtual destructors for abstract base classes that need live in Basic.
-PCHContainerWriter::~PCHContainerWriter() = default;
-PCHContainerReader::~PCHContainerReader() = default;
+PCHContainerWriter::~PCHContainerWriter() {}
+PCHContainerReader::~PCHContainerReader() {}

+ 2 - 2
lib/Basic/IdentifierTable.cpp

@@ -53,9 +53,9 @@ IdentifierInfo::IdentifierInfo() {
 // IdentifierTable Implementation
 // IdentifierTable Implementation
 //===----------------------------------------------------------------------===//
 //===----------------------------------------------------------------------===//
 
 
-IdentifierIterator::~IdentifierIterator() = default;
+IdentifierIterator::~IdentifierIterator() { }
 
 
-IdentifierInfoLookup::~IdentifierInfoLookup() = default;
+IdentifierInfoLookup::~IdentifierInfoLookup() {}
 
 
 namespace {
 namespace {
   /// \brief A simple identifier lookup iterator that represents an
   /// \brief A simple identifier lookup iterator that represents an

+ 1 - 1
lib/Basic/SourceManager.cpp

@@ -2204,7 +2204,7 @@ LLVM_DUMP_METHOD void SourceManager::dump() const {
   }
   }
 }
 }
 
 
-ExternalSLocEntrySource::~ExternalSLocEntrySource() = default;
+ExternalSLocEntrySource::~ExternalSLocEntrySource() { }
 
 
 /// Return the amount of memory used by memory buffers, breaking down
 /// Return the amount of memory used by memory buffers, breaking down
 /// by heap-backed versus mmap'ed memory.
 /// by heap-backed versus mmap'ed memory.

+ 1 - 1
lib/Basic/TargetInfo.cpp

@@ -100,7 +100,7 @@ TargetInfo::TargetInfo(const llvm::Triple &T) : TargetOpts(), Triple(T) {
 }
 }
 
 
 // Out of line virtual dtor for TargetInfo.
 // Out of line virtual dtor for TargetInfo.
-TargetInfo::~TargetInfo() = default;
+TargetInfo::~TargetInfo() {}
 
 
 /// getTypeName - Return the user string for the specified integer type enum.
 /// getTypeName - Return the user string for the specified integer type enum.
 /// For example, SignedShort -> "short".
 /// For example, SignedShort -> "short".

+ 5 - 5
lib/Basic/VirtualFileSystem.cpp

@@ -84,9 +84,9 @@ bool Status::exists() const {
   return isStatusKnown() && Type != file_type::file_not_found;
   return isStatusKnown() && Type != file_type::file_not_found;
 }
 }
 
 
-File::~File() = default;
+File::~File() {}
 
 
-FileSystem::~FileSystem() = default;
+FileSystem::~FileSystem() {}
 
 
 ErrorOr<std::unique_ptr<MemoryBuffer>>
 ErrorOr<std::unique_ptr<MemoryBuffer>>
 FileSystem::getBufferForFile(const llvm::Twine &Name, int64_t FileSize,
 FileSystem::getBufferForFile(const llvm::Twine &Name, int64_t FileSize,
@@ -315,7 +315,7 @@ OverlayFileSystem::setCurrentWorkingDirectory(const Twine &Path) {
   return std::error_code();
   return std::error_code();
 }
 }
 
 
-clang::vfs::detail::DirIterImpl::~DirIterImpl() = default;
+clang::vfs::detail::DirIterImpl::~DirIterImpl() { }
 
 
 namespace {
 namespace {
 class OverlayFSDirIterImpl : public clang::vfs::detail::DirIterImpl {
 class OverlayFSDirIterImpl : public clang::vfs::detail::DirIterImpl {
@@ -398,7 +398,7 @@ class InMemoryNode {
 public:
 public:
   InMemoryNode(Status Stat, InMemoryNodeKind Kind)
   InMemoryNode(Status Stat, InMemoryNodeKind Kind)
       : Stat(std::move(Stat)), Kind(Kind) {}
       : Stat(std::move(Stat)), Kind(Kind) {}
-  virtual ~InMemoryNode() = default;
+  virtual ~InMemoryNode() {}
   const Status &getStatus() const { return Stat; }
   const Status &getStatus() const { return Stat; }
   InMemoryNodeKind getKind() const { return Kind; }
   InMemoryNodeKind getKind() const { return Kind; }
   virtual std::string toString(unsigned Indent) const = 0;
   virtual std::string toString(unsigned Indent) const = 0;
@@ -482,7 +482,7 @@ InMemoryFileSystem::InMemoryFileSystem(bool UseNormalizedPaths)
                  llvm::sys::fs::perms::all_all))),
                  llvm::sys::fs::perms::all_all))),
       UseNormalizedPaths(UseNormalizedPaths) {}
       UseNormalizedPaths(UseNormalizedPaths) {}
 
 
-InMemoryFileSystem::~InMemoryFileSystem() = default;
+InMemoryFileSystem::~InMemoryFileSystem() {}
 
 
 std::string InMemoryFileSystem::toString() const {
 std::string InMemoryFileSystem::toString() const {
   return Root->toString(/*Indent=*/0);
   return Root->toString(/*Indent=*/0);

+ 1 - 1
lib/CodeGen/CGBlocks.cpp

@@ -40,7 +40,7 @@ CGBlockInfo::CGBlockInfo(const BlockDecl *block, StringRef name)
 }
 }
 
 
 // Anchor the vtable to this translation unit.
 // Anchor the vtable to this translation unit.
-BlockByrefHelpers::~BlockByrefHelpers() = default;
+BlockByrefHelpers::~BlockByrefHelpers() {}
 
 
 /// Build the given block as a global block.
 /// Build the given block as a global block.
 static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM,
 static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM,

+ 1 - 1
lib/CodeGen/CGCUDARuntime.cpp

@@ -22,7 +22,7 @@
 using namespace clang;
 using namespace clang;
 using namespace CodeGen;
 using namespace CodeGen;
 
 
-CGCUDARuntime::~CGCUDARuntime() = default;
+CGCUDARuntime::~CGCUDARuntime() {}
 
 
 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
                                              const CUDAKernelCallExpr *E,
                                              const CUDAKernelCallExpr *E,

+ 1 - 1
lib/CodeGen/CGCXXABI.cpp

@@ -18,7 +18,7 @@
 using namespace clang;
 using namespace clang;
 using namespace CodeGen;
 using namespace CodeGen;
 
 
-CGCXXABI::~CGCXXABI() = default;
+CGCXXABI::~CGCXXABI() { }
 
 
 void CGCXXABI::ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S) {
 void CGCXXABI::ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S) {
   DiagnosticsEngine &Diags = CGF.CGM.getDiags();
   DiagnosticsEngine &Diags = CGF.CGM.getDiags();

+ 1 - 1
lib/CodeGen/CGCall.cpp

@@ -584,7 +584,7 @@ struct TypeExpansion {
   const TypeExpansionKind Kind;
   const TypeExpansionKind Kind;
 
 
   TypeExpansion(TypeExpansionKind K) : Kind(K) {}
   TypeExpansion(TypeExpansionKind K) : Kind(K) {}
-  virtual ~TypeExpansion() = default;
+  virtual ~TypeExpansion() {}
 };
 };
 
 
 struct ConstantArrayExpansion : TypeExpansion {
 struct ConstantArrayExpansion : TypeExpansion {

+ 1 - 1
lib/CodeGen/CGObjC.cpp

@@ -3058,4 +3058,4 @@ CodeGenFunction::EmitBlockCopyAndAutorelease(llvm::Value *Block, QualType Ty) {
 }
 }
 
 
 
 
-CGObjCRuntime::~CGObjCRuntime() = default;
+CGObjCRuntime::~CGObjCRuntime() {}

+ 1 - 1
lib/CodeGen/CGOpenCLRuntime.cpp

@@ -22,7 +22,7 @@
 using namespace clang;
 using namespace clang;
 using namespace CodeGen;
 using namespace CodeGen;
 
 
-CGOpenCLRuntime::~CGOpenCLRuntime() = default;
+CGOpenCLRuntime::~CGOpenCLRuntime() {}
 
 
 void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF,
 void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF,
                                                 const VarDecl &D) {
                                                 const VarDecl &D) {

+ 1 - 1
lib/CodeGen/CGOpenMPRuntime.h

@@ -369,7 +369,7 @@ private:
 
 
 public:
 public:
   explicit CGOpenMPRuntime(CodeGenModule &CGM);
   explicit CGOpenMPRuntime(CodeGenModule &CGM);
-  virtual ~CGOpenMPRuntime() = default;
+  virtual ~CGOpenMPRuntime() {}
   virtual void clear();
   virtual void clear();
 
 
   /// \brief Emits outlined function for the specified OpenMP parallel directive
   /// \brief Emits outlined function for the specified OpenMP parallel directive

+ 1 - 1
lib/CodeGen/CodeGenFunction.cpp

@@ -1801,7 +1801,7 @@ Address CodeGenFunction::EmitFieldAnnotations(const FieldDecl *D,
   return Address(V, Addr.getAlignment());
   return Address(V, Addr.getAlignment());
 }
 }
 
 
-CodeGenFunction::CGCapturedStmtInfo::~CGCapturedStmtInfo() = default;
+CodeGenFunction::CGCapturedStmtInfo::~CGCapturedStmtInfo() { }
 
 
 CodeGenFunction::SanitizerScope::SanitizerScope(CodeGenFunction *CGF)
 CodeGenFunction::SanitizerScope::SanitizerScope(CodeGenFunction *CGF)
     : CGF(CGF) {
     : CGF(CGF) {

+ 2 - 1
lib/CodeGen/CodeGenTBAA.cpp

@@ -36,7 +36,8 @@ CodeGenTBAA::CodeGenTBAA(ASTContext &Ctx, llvm::LLVMContext& VMContext,
     MDHelper(VMContext), Root(nullptr), Char(nullptr) {
     MDHelper(VMContext), Root(nullptr), Char(nullptr) {
 }
 }
 
 
-CodeGenTBAA::~CodeGenTBAA() = default;
+CodeGenTBAA::~CodeGenTBAA() {
+}
 
 
 llvm::MDNode *CodeGenTBAA::getRoot() {
 llvm::MDNode *CodeGenTBAA::getRoot() {
   // Define the root of the tree. This identifies the tree, so that
   // Define the root of the tree. This identifies the tree, so that

+ 1 - 1
lib/CodeGen/TargetInfo.cpp

@@ -66,7 +66,7 @@ Address ABIInfo::EmitMSVAArg(CodeGenFunction &CGF, Address VAListAddr,
   return Address::invalid();
   return Address::invalid();
 }
 }
 
 
-ABIInfo::~ABIInfo() = default;
+ABIInfo::~ABIInfo() {}
 
 
 static CGCXXABI::RecordArgABI getRecordArgABI(const RecordType *RT,
 static CGCXXABI::RecordArgABI getRecordArgABI(const RecordType *RT,
                                               CGCXXABI &CXXABI) {
                                               CGCXXABI &CXXABI) {

+ 2 - 1
lib/Driver/Tool.cpp

@@ -19,4 +19,5 @@ Tool::Tool(const char *_Name, const char *_ShortName, const ToolChain &TC,
       ResponseSupport(_ResponseSupport), ResponseEncoding(_ResponseEncoding),
       ResponseSupport(_ResponseSupport), ResponseEncoding(_ResponseEncoding),
       ResponseFlag(_ResponseFlag) {}
       ResponseFlag(_ResponseFlag) {}
 
 
-Tool::~Tool() = default;
+Tool::~Tool() {
+}

+ 2 - 1
lib/Driver/ToolChain.cpp

@@ -72,7 +72,8 @@ ToolChain::ToolChain(const Driver &D, const llvm::Triple &T,
           << A->getValue() << A->getAsString(Args);
           << A->getValue() << A->getAsString(Args);
 }
 }
 
 
-ToolChain::~ToolChain() = default;
+ToolChain::~ToolChain() {
+}
 
 
 vfs::FileSystem &ToolChain::getVFS() const { return getDriver().getVFS(); }
 vfs::FileSystem &ToolChain::getVFS() const { return getDriver().getVFS(); }
 
 

+ 6 - 6
lib/Driver/ToolChains.cpp

@@ -156,9 +156,9 @@ StringRef MachO::getMachOArchName(const ArgList &Args) const {
   }
   }
 }
 }
 
 
-Darwin::~Darwin() = default;
+Darwin::~Darwin() {}
 
 
-MachO::~MachO() = default;
+MachO::~MachO() {}
 
 
 std::string MachO::ComputeEffectiveClangTriple(const ArgList &Args,
 std::string MachO::ComputeEffectiveClangTriple(const ArgList &Args,
                                                types::ID InputType) const {
                                                types::ID InputType) const {
@@ -2102,7 +2102,7 @@ Generic_GCC::Generic_GCC(const Driver &D, const llvm::Triple &Triple,
     getProgramPaths().push_back(getDriver().Dir);
     getProgramPaths().push_back(getDriver().Dir);
 }
 }
 
 
-Generic_GCC::~Generic_GCC() = default;
+Generic_GCC::~Generic_GCC() {}
 
 
 Tool *Generic_GCC::getTool(Action::ActionClass AC) const {
 Tool *Generic_GCC::getTool(Action::ActionClass AC) const {
   switch (AC) {
   switch (AC) {
@@ -2339,7 +2339,7 @@ HexagonToolChain::HexagonToolChain(const Driver &D, const llvm::Triple &Triple,
                          GetTargetCPU(Args), InstalledDir, LibPaths);
                          GetTargetCPU(Args), InstalledDir, LibPaths);
 }
 }
 
 
-HexagonToolChain::~HexagonToolChain() = default;
+HexagonToolChain::~HexagonToolChain() {}
 
 
 Tool *HexagonToolChain::buildAssembler() const {
 Tool *HexagonToolChain::buildAssembler() const {
   return new tools::hexagon::Assembler(*this);
   return new tools::hexagon::Assembler(*this);
@@ -2642,7 +2642,7 @@ TCEToolChain::TCEToolChain(const Driver &D, const llvm::Triple &Triple,
   getProgramPaths().push_back(Path);
   getProgramPaths().push_back(Path);
 }
 }
 
 
-TCEToolChain::~TCEToolChain() = default;
+TCEToolChain::~TCEToolChain() {}
 
 
 bool TCEToolChain::IsMathErrnoDefault() const { return true; }
 bool TCEToolChain::IsMathErrnoDefault() const { return true; }
 
 
@@ -3987,7 +3987,7 @@ MyriadToolChain::MyriadToolChain(const Driver &D, const llvm::Triple &Triple,
   }
   }
 }
 }
 
 
-MyriadToolChain::~MyriadToolChain() = default;
+MyriadToolChain::~MyriadToolChain() {}
 
 
 void MyriadToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
 void MyriadToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
                                                 ArgStringList &CC1Args) const {
                                                 ArgStringList &CC1Args) const {

+ 1 - 1
lib/Format/BreakableToken.h

@@ -36,7 +36,7 @@ public:
   /// \brief Contains starting character index and length of split.
   /// \brief Contains starting character index and length of split.
   typedef std::pair<StringRef::size_type, unsigned> Split;
   typedef std::pair<StringRef::size_type, unsigned> Split;
 
 
-  virtual ~BreakableToken() = default;
+  virtual ~BreakableToken() {}
 
 
   /// \brief Returns the number of lines in this token in the original code.
   /// \brief Returns the number of lines in this token in the original code.
   virtual unsigned getLineCount() const = 0;
   virtual unsigned getLineCount() const = 0;

+ 1 - 1
lib/Format/FormatToken.cpp

@@ -67,7 +67,7 @@ bool FormatToken::isSimpleTypeSpecifier() const {
   }
   }
 }
 }
 
 
-TokenRole::~TokenRole() = default;
+TokenRole::~TokenRole() {}
 
 
 void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {}
 void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {}
 
 

+ 1 - 1
lib/Format/UnwrappedLineFormatter.cpp

@@ -477,7 +477,7 @@ public:
                 UnwrappedLineFormatter *BlockFormatter)
                 UnwrappedLineFormatter *BlockFormatter)
       : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style),
       : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style),
         BlockFormatter(BlockFormatter) {}
         BlockFormatter(BlockFormatter) {}
-  virtual ~LineFormatter() = default;
+  virtual ~LineFormatter() {}
 
 
   /// \brief Formats an \c AnnotatedLine and returns the penalty.
   /// \brief Formats an \c AnnotatedLine and returns the penalty.
   ///
   ///

+ 1 - 1
lib/Format/UnwrappedLineParser.cpp

@@ -25,7 +25,7 @@ namespace format {
 
 
 class FormatTokenSource {
 class FormatTokenSource {
 public:
 public:
-  virtual ~FormatTokenSource() = default;
+  virtual ~FormatTokenSource() {}
   virtual FormatToken *getNextToken() = 0;
   virtual FormatToken *getNextToken() = 0;
 
 
   virtual unsigned getPosition() = 0;
   virtual unsigned getPosition() = 0;

+ 1 - 1
lib/Format/UnwrappedLineParser.h

@@ -51,7 +51,7 @@ struct UnwrappedLine {
 
 
 class UnwrappedLineConsumer {
 class UnwrappedLineConsumer {
 public:
 public:
-  virtual ~UnwrappedLineConsumer() = default;
+  virtual ~UnwrappedLineConsumer() {}
   virtual void consumeUnwrappedLine(const UnwrappedLine &Line) = 0;
   virtual void consumeUnwrappedLine(const UnwrappedLine &Line) = 0;
   virtual void finishRun() = 0;
   virtual void finishRun() = 0;
 };
 };

+ 1 - 1
lib/Frontend/ASTUnit.cpp

@@ -2841,7 +2841,7 @@ void ASTUnit::ConcurrencyState::finish() {
 #else // NDEBUG
 #else // NDEBUG
 
 
 ASTUnit::ConcurrencyState::ConcurrencyState() { Mutex = nullptr; }
 ASTUnit::ConcurrencyState::ConcurrencyState() { Mutex = nullptr; }
-ASTUnit::ConcurrencyState::~ConcurrencyState() = default;
+ASTUnit::ConcurrencyState::~ConcurrencyState() {}
 void ASTUnit::ConcurrencyState::start() {}
 void ASTUnit::ConcurrencyState::start() {}
 void ASTUnit::ConcurrencyState::finish() {}
 void ASTUnit::ConcurrencyState::finish() {}
 
 

+ 2 - 2
lib/Frontend/CacheTokens.cpp

@@ -47,7 +47,7 @@ class PTHEntry {
   Offset TokenData, PPCondData;
   Offset TokenData, PPCondData;
 
 
 public:
 public:
-  PTHEntry() = default;
+  PTHEntry() {}
 
 
   PTHEntry(Offset td, Offset ppcd)
   PTHEntry(Offset td, Offset ppcd)
     : TokenData(td), PPCondData(ppcd) {}
     : TokenData(td), PPCondData(ppcd) {}
@@ -547,7 +547,7 @@ class StatListener : public FileSystemStatCache {
   PTHMap &PM;
   PTHMap &PM;
 public:
 public:
   StatListener(PTHMap &pm) : PM(pm) {}
   StatListener(PTHMap &pm) : PM(pm) {}
-  ~StatListener() override = default;
+  ~StatListener() override {}
 
 
   LookupResult getStat(const char *Path, FileData &Data, bool isFile,
   LookupResult getStat(const char *Path, FileData &Data, bool isFile,
                        std::unique_ptr<vfs::File> *F,
                        std::unique_ptr<vfs::File> *F,

+ 1 - 1
lib/Frontend/CompilerInvocation.cpp

@@ -59,7 +59,7 @@ CompilerInvocationBase::CompilerInvocationBase(const CompilerInvocationBase &X)
     HeaderSearchOpts(new HeaderSearchOptions(X.getHeaderSearchOpts())),
     HeaderSearchOpts(new HeaderSearchOptions(X.getHeaderSearchOpts())),
     PreprocessorOpts(new PreprocessorOptions(X.getPreprocessorOpts())) {}
     PreprocessorOpts(new PreprocessorOptions(X.getPreprocessorOpts())) {}
 
 
-CompilerInvocationBase::~CompilerInvocationBase() = default;
+CompilerInvocationBase::~CompilerInvocationBase() {}
 
 
 //===----------------------------------------------------------------------===//
 //===----------------------------------------------------------------------===//
 // Deserialization (from args)
 // Deserialization (from args)

+ 1 - 1
lib/Frontend/DependencyFile.cpp

@@ -137,7 +137,7 @@ bool DependencyCollector::sawDependency(StringRef Filename, bool FromModule,
          (needSystemDependencies() || !IsSystem);
          (needSystemDependencies() || !IsSystem);
 }
 }
 
 
-DependencyCollector::~DependencyCollector() = default;
+DependencyCollector::~DependencyCollector() { }
 void DependencyCollector::attachToPreprocessor(Preprocessor &PP) {
 void DependencyCollector::attachToPreprocessor(Preprocessor &PP) {
   PP.addPPCallbacks(
   PP.addPPCallbacks(
       llvm::make_unique<DepCollectorPPCallbacks>(*this, PP.getSourceManager()));
       llvm::make_unique<DepCollectorPPCallbacks>(*this, PP.getSourceManager()));

+ 2 - 2
lib/Frontend/DiagnosticRenderer.cpp

@@ -69,7 +69,7 @@ DiagnosticRenderer::DiagnosticRenderer(const LangOptions &LangOpts,
                                        DiagnosticOptions *DiagOpts)
                                        DiagnosticOptions *DiagOpts)
   : LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {}
   : LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {}
 
 
-DiagnosticRenderer::~DiagnosticRenderer() = default;
+DiagnosticRenderer::~DiagnosticRenderer() {}
 
 
 namespace {
 namespace {
 
 
@@ -577,7 +577,7 @@ void DiagnosticRenderer::emitMacroExpansions(SourceLocation Loc,
     emitSingleMacroExpansion(*I, Level, Ranges, SM);
     emitSingleMacroExpansion(*I, Level, Ranges, SM);
 }
 }
 
 
-DiagnosticNoteRenderer::~DiagnosticNoteRenderer() = default;
+DiagnosticNoteRenderer::~DiagnosticNoteRenderer() {}
 
 
 void DiagnosticNoteRenderer::emitIncludeLocation(SourceLocation Loc,
 void DiagnosticNoteRenderer::emitIncludeLocation(SourceLocation Loc,
                                                  PresumedLoc PLoc,
                                                  PresumedLoc PLoc,

+ 1 - 1
lib/Frontend/FrontendAction.cpp

@@ -126,7 +126,7 @@ public:
 
 
 FrontendAction::FrontendAction() : Instance(nullptr) {}
 FrontendAction::FrontendAction() : Instance(nullptr) {}
 
 
-FrontendAction::~FrontendAction() = default;
+FrontendAction::~FrontendAction() {}
 
 
 void FrontendAction::setCurrentInput(const FrontendInputFile &CurrentInput,
 void FrontendAction::setCurrentInput(const FrontendInputFile &CurrentInput,
                                      std::unique_ptr<ASTUnit> AST) {
                                      std::unique_ptr<ASTUnit> AST) {

+ 1 - 1
lib/Frontend/MultiplexConsumer.cpp

@@ -262,7 +262,7 @@ MultiplexConsumer::MultiplexConsumer(
   }
   }
 }
 }
 
 
-MultiplexConsumer::~MultiplexConsumer() = default;
+MultiplexConsumer::~MultiplexConsumer() {}
 
 
 void MultiplexConsumer::Initialize(ASTContext &Context) {
 void MultiplexConsumer::Initialize(ASTContext &Context) {
   for (auto &Consumer : Consumers)
   for (auto &Consumer : Consumers)

+ 1 - 1
lib/Frontend/Rewrite/FixItRewriter.cpp

@@ -200,4 +200,4 @@ void FixItRewriter::Diag(SourceLocation Loc, unsigned DiagID) {
   Diags.setClient(this, false);
   Diags.setClient(this, false);
 }
 }
 
 
-FixItOptions::~FixItOptions() = default;
+FixItOptions::~FixItOptions() {}

+ 1 - 1
lib/Frontend/Rewrite/FrontendActions.cpp

@@ -38,7 +38,7 @@ HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
 }
 }
 
 
 FixItAction::FixItAction() {}
 FixItAction::FixItAction() {}
-FixItAction::~FixItAction() = default;
+FixItAction::~FixItAction() {}
 
 
 std::unique_ptr<ASTConsumer>
 std::unique_ptr<ASTConsumer>
 FixItAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
 FixItAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {

+ 1 - 1
lib/Frontend/Rewrite/RewriteModernObjC.cpp

@@ -244,7 +244,7 @@ namespace {
                 DiagnosticsEngine &D, const LangOptions &LOpts,
                 DiagnosticsEngine &D, const LangOptions &LOpts,
                 bool silenceMacroWarn, bool LineInfo);
                 bool silenceMacroWarn, bool LineInfo);
 
 
-    ~RewriteModernObjC() override = default;
+    ~RewriteModernObjC() override {}
 
 
     void HandleTranslationUnit(ASTContext &C) override;
     void HandleTranslationUnit(ASTContext &C) override;
 
 

+ 2 - 2
lib/Frontend/Rewrite/RewriteObjC.cpp

@@ -193,7 +193,7 @@ namespace {
                 DiagnosticsEngine &D, const LangOptions &LOpts,
                 DiagnosticsEngine &D, const LangOptions &LOpts,
                 bool silenceMacroWarn);
                 bool silenceMacroWarn);
 
 
-    ~RewriteObjC() override = default;
+    ~RewriteObjC() override {}
 
 
     void HandleTranslationUnit(ASTContext &C) override;
     void HandleTranslationUnit(ASTContext &C) override;
 
 
@@ -512,7 +512,7 @@ namespace {
                                                      D, LOpts,
                                                      D, LOpts,
                                                      silenceMacroWarn) {}
                                                      silenceMacroWarn) {}
 
 
-    ~RewriteObjCFragileABI() override = default;
+    ~RewriteObjCFragileABI() override {}
     void Initialize(ASTContext &context) override;
     void Initialize(ASTContext &context) override;
 
 
     // Rewriting metadata
     // Rewriting metadata

Some files were not shown because too many files changed in this diff