Index: cfe/trunk/include/clang/AST/ASTConsumer.h =================================================================== --- cfe/trunk/include/clang/AST/ASTConsumer.h +++ cfe/trunk/include/clang/AST/ASTConsumer.h @@ -43,7 +43,7 @@ public: ASTConsumer() : SemaConsumer(false) { } - virtual ~ASTConsumer() = default; + virtual ~ASTConsumer() {} /// Initialize - This is called to initialize the consumer, providing the /// ASTContext. Index: cfe/trunk/include/clang/AST/CanonicalType.h =================================================================== --- cfe/trunk/include/clang/AST/CanonicalType.h +++ cfe/trunk/include/clang/AST/CanonicalType.h @@ -333,7 +333,7 @@ class CanProxy : public CanProxyAdaptor { public: /// \brief Build a NULL proxy. - CanProxy() = default; + CanProxy() { } /// \brief Build a proxy to the given canonical type. CanProxy(CanQual Stored) { this->Stored = Stored; } @@ -389,7 +389,7 @@ CanQualType, typename std::iterator_traits::difference_type, CanProxy, CanQualType> { - CanTypeIterator() = default; + CanTypeIterator() {} explicit CanTypeIterator(InputIterator Iter) : CanTypeIterator::iterator_adaptor_base(std::move(Iter)) {} Index: cfe/trunk/include/clang/AST/DeclFriend.h =================================================================== --- cfe/trunk/include/clang/AST/DeclFriend.h +++ cfe/trunk/include/clang/AST/DeclFriend.h @@ -180,7 +180,7 @@ friend class CXXRecordDecl; explicit friend_iterator(FriendDecl *Ptr) : Ptr(Ptr) {} public: - friend_iterator() = default; + friend_iterator() {} typedef FriendDecl *value_type; typedef FriendDecl *reference; Index: cfe/trunk/include/clang/AST/DeclTemplate.h =================================================================== --- cfe/trunk/include/clang/AST/DeclTemplate.h +++ cfe/trunk/include/clang/AST/DeclTemplate.h @@ -664,7 +664,7 @@ typename std::iterator_traits::iterator>::iterator_category, DeclType *, ptrdiff_t, DeclType *, DeclType *> { - SpecIterator() = default; + SpecIterator() {} explicit SpecIterator( typename llvm::FoldingSetVector::iterator SetIter) : SpecIterator::iterator_adaptor_base(std::move(SetIter)) {} Index: cfe/trunk/include/clang/AST/Expr.h =================================================================== --- cfe/trunk/include/clang/AST/Expr.h +++ cfe/trunk/include/clang/AST/Expr.h @@ -337,7 +337,7 @@ {} public: - Classification() = default; + Classification() {} Kinds getKind() const { return static_cast(Kind); } ModifiableType getModifiable() const { @@ -4076,7 +4076,7 @@ friend class DesignatedInitExpr; public: - Designator() = default; + Designator() {} /// @brief Initializes a field designator. Designator(const IdentifierInfo *FieldName, SourceLocation DotLoc, Index: cfe/trunk/include/clang/AST/ExprCXX.h =================================================================== --- cfe/trunk/include/clang/AST/ExprCXX.h +++ cfe/trunk/include/clang/AST/ExprCXX.h @@ -2278,7 +2278,7 @@ : Expr(ArrayTypeTraitExprClass, Empty), ATT(0), Value(false), QueriedType() { } - virtual ~ArrayTypeTraitExpr() = default; + virtual ~ArrayTypeTraitExpr() { } SourceLocation getLocStart() const LLVM_READONLY { return Loc; } SourceLocation getLocEnd() const LLVM_READONLY { return RParen; } Index: cfe/trunk/include/clang/AST/Mangle.h =================================================================== --- cfe/trunk/include/clang/AST/Mangle.h +++ cfe/trunk/include/clang/AST/Mangle.h @@ -64,7 +64,7 @@ ManglerKind Kind) : Context(Context), Diags(Diags), Kind(Kind) {} - virtual ~MangleContext() = default; + virtual ~MangleContext() { } ASTContext &getASTContext() const { return Context; } Index: cfe/trunk/include/clang/AST/MangleNumberingContext.h =================================================================== --- cfe/trunk/include/clang/AST/MangleNumberingContext.h +++ cfe/trunk/include/clang/AST/MangleNumberingContext.h @@ -32,7 +32,7 @@ /// literals within a particular context. class MangleNumberingContext : public RefCountedBase { public: - virtual ~MangleNumberingContext() = default; + virtual ~MangleNumberingContext() {} /// \brief Retrieve the mangling number of a new lambda expression with the /// given call operator within this context. Index: cfe/trunk/include/clang/AST/Redeclarable.h =================================================================== --- cfe/trunk/include/clang/AST/Redeclarable.h +++ cfe/trunk/include/clang/AST/Redeclarable.h @@ -248,7 +248,7 @@ template class Mergeable { public: - Mergeable() = default; + Mergeable() {} /// \brief Return the first declaration of this declaration or itself if this /// is the only declaration. Index: cfe/trunk/include/clang/AST/StmtIterator.h =================================================================== --- cfe/trunk/include/clang/AST/StmtIterator.h +++ cfe/trunk/include/clang/AST/StmtIterator.h @@ -81,7 +81,7 @@ protected: StmtIteratorImpl(const StmtIteratorBase& RHS) : StmtIteratorBase(RHS) {} public: - StmtIteratorImpl() = default; + StmtIteratorImpl() {} StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {} StmtIteratorImpl(Decl **dgi, Decl **dge) : StmtIteratorBase(dgi, dge) {} StmtIteratorImpl(const VariableArrayType *t) : StmtIteratorBase(t) {} Index: cfe/trunk/include/clang/AST/UnresolvedSet.h =================================================================== --- cfe/trunk/include/clang/AST/UnresolvedSet.h +++ cfe/trunk/include/clang/AST/UnresolvedSet.h @@ -59,7 +59,7 @@ // UnresolvedSet. private: template friend class UnresolvedSet; - UnresolvedSetImpl() = default; + UnresolvedSetImpl() {} UnresolvedSetImpl(const UnresolvedSetImpl &) {} public: Index: cfe/trunk/include/clang/AST/VTableBuilder.h =================================================================== --- cfe/trunk/include/clang/AST/VTableBuilder.h +++ cfe/trunk/include/clang/AST/VTableBuilder.h @@ -298,7 +298,7 @@ bool isMicrosoft() const { return IsMicrosoftABI; } - virtual ~VTableContextBase() = default; + virtual ~VTableContextBase() {} protected: typedef llvm::DenseMap ThunksMapTy; Index: cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h =================================================================== --- cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h +++ cfe/trunk/include/clang/ASTMatchers/ASTMatchersInternal.h @@ -131,7 +131,7 @@ /// BoundNodesTree. class Visitor { public: - virtual ~Visitor() = default; + virtual ~Visitor() {} /// \brief Called multiple times during a single call to VisitMatches(...). /// @@ -209,7 +209,7 @@ template class MatcherInterface : public DynMatcherInterface { public: - ~MatcherInterface() override = default; + ~MatcherInterface() override {} /// \brief Returns true if 'Node' can be matched. /// @@ -798,7 +798,7 @@ AMM_ParentOnly }; - virtual ~ASTMatchFinder() = default; + virtual ~ASTMatchFinder() {} /// \brief Returns true if the given class is directly or indirectly derived /// from a base type matching \c base. @@ -1376,7 +1376,7 @@ BindableMatcher, Matcher, makeDynCastAllOfComposite > { public: - VariadicDynCastAllOfMatcher() = default; + VariadicDynCastAllOfMatcher() {} }; /// \brief A \c VariadicAllOfMatcher object is a variadic functor that takes @@ -1394,7 +1394,7 @@ BindableMatcher, Matcher, makeAllOfComposite > { public: - VariadicAllOfMatcher() = default; + VariadicAllOfMatcher() {} }; /// \brief Matches nodes of type \c TLoc for which the inner @@ -1515,7 +1515,7 @@ struct Func : public llvm::VariadicFunction, &Self::create> { - Func() = default; + Func() {} }; private: Index: cfe/trunk/include/clang/Analysis/Analyses/FormatString.h =================================================================== --- cfe/trunk/include/clang/Analysis/Analyses/FormatString.h +++ cfe/trunk/include/clang/Analysis/Analyses/FormatString.h @@ -606,7 +606,7 @@ class FormatStringHandler { public: - FormatStringHandler() = default; + FormatStringHandler() {} virtual ~FormatStringHandler(); virtual void HandleNullChar(const char *nullCharacter) {} Index: cfe/trunk/include/clang/Analysis/Analyses/LiveVariables.h =================================================================== --- cfe/trunk/include/clang/Analysis/Analyses/LiveVariables.h +++ cfe/trunk/include/clang/Analysis/Analyses/LiveVariables.h @@ -53,7 +53,7 @@ class Observer { virtual void anchor(); public: - virtual ~Observer() = default; + virtual ~Observer() {} /// A callback invoked right before invoking the /// liveness transfer function on the given statement. Index: cfe/trunk/include/clang/Analysis/Analyses/ReachableCode.h =================================================================== --- cfe/trunk/include/clang/Analysis/Analyses/ReachableCode.h +++ cfe/trunk/include/clang/Analysis/Analyses/ReachableCode.h @@ -48,7 +48,7 @@ class Callback { virtual void anchor(); public: - virtual ~Callback() = default; + virtual ~Callback() {} virtual void HandleUnreachable(UnreachableKind UK, SourceLocation L, SourceRange ConditionVal, Index: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h =================================================================== --- cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h +++ cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h @@ -176,7 +176,7 @@ class VisitReducer : public Traversal, public VisitReducerBase { public: - VisitReducer() = default; + VisitReducer() {} public: R_SExpr reduceNull() { return true; } Index: cfe/trunk/include/clang/Analysis/Analyses/UninitializedValues.h =================================================================== --- cfe/trunk/include/clang/Analysis/Analyses/UninitializedValues.h +++ cfe/trunk/include/clang/Analysis/Analyses/UninitializedValues.h @@ -99,7 +99,7 @@ class UninitVariablesHandler { public: - UninitVariablesHandler() = default; + UninitVariablesHandler() {} virtual ~UninitVariablesHandler(); /// Called when the uninitialized variable is used at the given expression. Index: cfe/trunk/include/clang/Analysis/AnalysisContext.h =================================================================== --- cfe/trunk/include/clang/Analysis/AnalysisContext.h +++ cfe/trunk/include/clang/Analysis/AnalysisContext.h @@ -44,7 +44,7 @@ /// to AnalysisDeclContext. class ManagedAnalysis { protected: - ManagedAnalysis() = default; + ManagedAnalysis() {} public: virtual ~ManagedAnalysis(); @@ -289,7 +289,7 @@ Block(blk), Index(idx) {} public: - ~StackFrameContext() override = default; + ~StackFrameContext() override {} const Stmt *getCallSite() const { return CallSite; } @@ -324,7 +324,7 @@ : LocationContext(Scope, ctx, parent), Enter(s) {} public: - ~ScopeContext() override = default; + ~ScopeContext() override {} void Profile(llvm::FoldingSetNodeID &ID) override; @@ -352,7 +352,7 @@ : LocationContext(Block, ctx, parent), BD(bd), ContextData(contextData) {} public: - ~BlockInvocationContext() override = default; + ~BlockInvocationContext() override {} const BlockDecl *getBlockDecl() const { return BD; } Index: cfe/trunk/include/clang/Analysis/CFG.h =================================================================== --- cfe/trunk/include/clang/Analysis/CFG.h +++ cfe/trunk/include/clang/Analysis/CFG.h @@ -704,11 +704,11 @@ /// operator error is found when building the CFG. class CFGCallback { public: - CFGCallback() = default; + CFGCallback() {} virtual void compareAlwaysTrue(const BinaryOperator *B, bool isAlwaysTrue) {} virtual void compareBitwiseEquality(const BinaryOperator *B, bool isAlwaysTrue) {} - virtual ~CFGCallback() = default; + virtual ~CFGCallback() {} }; /// CFG - Represents a source-level, intra-procedural CFG that represents the Index: cfe/trunk/include/clang/Basic/FileSystemStatCache.h =================================================================== --- cfe/trunk/include/clang/Basic/FileSystemStatCache.h +++ cfe/trunk/include/clang/Basic/FileSystemStatCache.h @@ -51,7 +51,7 @@ std::unique_ptr NextStatCache; public: - virtual ~FileSystemStatCache() = default; + virtual ~FileSystemStatCache() {} enum LookupResult { CacheExists, ///< We know the file exists and its cached stat data. Index: cfe/trunk/include/clang/Basic/IdentifierTable.h =================================================================== --- cfe/trunk/include/clang/Basic/IdentifierTable.h +++ cfe/trunk/include/clang/Basic/IdentifierTable.h @@ -385,7 +385,7 @@ void operator=(const IdentifierIterator &) = delete; protected: - IdentifierIterator() = default; + IdentifierIterator() { } public: virtual ~IdentifierIterator(); Index: cfe/trunk/include/clang/Driver/Job.h =================================================================== --- cfe/trunk/include/clang/Driver/Job.h +++ cfe/trunk/include/clang/Driver/Job.h @@ -88,7 +88,7 @@ // FIXME: This really shouldn't be copyable, but is currently copied in some // error handling in Driver::generateCompilationDiagnostics. Command(const Command &) = default; - virtual ~Command() = default; + virtual ~Command() {} virtual void Print(llvm::raw_ostream &OS, const char *Terminator, bool Quote, CrashReportInfo *CrashInfo = nullptr) const; Index: cfe/trunk/include/clang/Edit/EditsReceiver.h =================================================================== --- cfe/trunk/include/clang/Edit/EditsReceiver.h +++ cfe/trunk/include/clang/Edit/EditsReceiver.h @@ -20,7 +20,7 @@ class EditsReceiver { public: - virtual ~EditsReceiver() = default; + virtual ~EditsReceiver() { } virtual void insert(SourceLocation loc, StringRef text) = 0; virtual void replace(CharSourceRange range, StringRef text) = 0; Index: cfe/trunk/include/clang/Frontend/SerializedDiagnosticReader.h =================================================================== --- cfe/trunk/include/clang/Frontend/SerializedDiagnosticReader.h +++ cfe/trunk/include/clang/Frontend/SerializedDiagnosticReader.h @@ -58,8 +58,8 @@ /// the various constructs that are found in serialized diagnostics. class SerializedDiagnosticReader { public: - SerializedDiagnosticReader() = default; - virtual ~SerializedDiagnosticReader() = default; + SerializedDiagnosticReader() {} + virtual ~SerializedDiagnosticReader() {} /// \brief Read the diagnostics in \c File std::error_code readDiagnostics(StringRef File); Index: cfe/trunk/include/clang/Frontend/VerifyDiagnosticConsumer.h =================================================================== --- cfe/trunk/include/clang/Frontend/VerifyDiagnosticConsumer.h +++ cfe/trunk/include/clang/Frontend/VerifyDiagnosticConsumer.h @@ -161,7 +161,7 @@ unsigned Min, Max; bool MatchAnyLine; - virtual ~Directive() = default; + virtual ~Directive() { } // Returns true if directive text is valid. // Otherwise returns false and populates E. Index: cfe/trunk/include/clang/Lex/ModuleMap.h =================================================================== --- cfe/trunk/include/clang/Lex/ModuleMap.h +++ cfe/trunk/include/clang/Lex/ModuleMap.h @@ -40,7 +40,7 @@ /// reads module map files. class ModuleMapCallbacks { public: - virtual ~ModuleMapCallbacks() = default; + virtual ~ModuleMapCallbacks() {} /// \brief Called when a module map file has been read. /// Index: cfe/trunk/include/clang/Lex/PTHLexer.h =================================================================== --- cfe/trunk/include/clang/Lex/PTHLexer.h +++ cfe/trunk/include/clang/Lex/PTHLexer.h @@ -64,7 +64,7 @@ PTHLexer(Preprocessor& pp, FileID FID, const unsigned char *D, const unsigned char* ppcond, PTHManager &PM); public: - ~PTHLexer() override = default; + ~PTHLexer() override {} /// Lex - Return the next token. bool Lex(Token &Tok); Index: cfe/trunk/include/clang/Lex/PreprocessorLexer.h =================================================================== --- cfe/trunk/include/clang/Lex/PreprocessorLexer.h +++ cfe/trunk/include/clang/Lex/PreprocessorLexer.h @@ -81,7 +81,7 @@ ParsingFilename(false), LexingRawMode(false) {} - virtual ~PreprocessorLexer() = default; + virtual ~PreprocessorLexer() {} virtual void IndirectLex(Token& Result) = 0; Index: cfe/trunk/include/clang/Sema/Sema.h =================================================================== --- cfe/trunk/include/clang/Sema/Sema.h +++ cfe/trunk/include/clang/Sema/Sema.h @@ -1313,7 +1313,7 @@ TypeDiagnoser(bool Suppressed = false) : Suppressed(Suppressed) { } virtual void diagnose(Sema &S, SourceLocation Loc, QualType T) = 0; - virtual ~TypeDiagnoser() = default; + virtual ~TypeDiagnoser() {} }; static int getPrintable(int I) { return I; } @@ -2297,7 +2297,7 @@ virtual SemaDiagnosticBuilder diagnoseConversion( Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0; - virtual ~ContextualImplicitConverter() = default; + virtual ~ContextualImplicitConverter() {} }; class ICEConvertDiagnoser : public ContextualImplicitConverter { @@ -8597,7 +8597,7 @@ virtual void diagnoseNotICE(Sema &S, SourceLocation Loc, SourceRange SR) =0; virtual void diagnoseFold(Sema &S, SourceLocation Loc, SourceRange SR); - virtual ~VerifyICEDiagnoser() = default; + virtual ~VerifyICEDiagnoser() { } }; /// VerifyIntegerConstantExpression - Verifies that an expression is an ICE, Index: cfe/trunk/include/clang/Sema/TypoCorrection.h =================================================================== --- cfe/trunk/include/clang/Sema/TypoCorrection.h +++ cfe/trunk/include/clang/Sema/TypoCorrection.h @@ -255,7 +255,7 @@ IsObjCIvarLookup(false), IsAddressOfOperand(false), Typo(Typo), TypoNNS(TypoNNS) {} - virtual ~CorrectionCandidateCallback() = default; + virtual ~CorrectionCandidateCallback() {} /// \brief Simple predicate used by the default RankCandidate to /// determine whether to return an edit distance of 0 or InvalidDistance. Index: cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h @@ -57,7 +57,7 @@ class NodeResolver { virtual void anchor(); public: - virtual ~NodeResolver() = default; + virtual ~NodeResolver() {} virtual const ExplodedNode* getOriginalNode(const ExplodedNode *N) = 0; }; @@ -529,7 +529,7 @@ public: BugReporterContext(GRBugReporter& br) : BR(br) {} - virtual ~BugReporterContext() = default; + virtual ~BugReporterContext() {} GRBugReporter& getBugReporter() { return BR; } Index: cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h @@ -42,7 +42,7 @@ BugType(const CheckerBase *checker, StringRef name, StringRef cat) : Check(checker->getCheckName()), Name(name), Category(cat), SuppressonSink(false) {} - virtual ~BugType() = default; + virtual ~BugType() {} // FIXME: Should these be made strings as well? StringRef getName() const { return Name; } Index: cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h @@ -481,7 +481,7 @@ public: 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 /// 'getMessageForX()' methods to construct a specific message. Index: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h @@ -168,7 +168,7 @@ RegionAndSymbolInvalidationTraits *ETraits) const {} public: - virtual ~CallEvent() = default; + virtual ~CallEvent() {} /// \brief Returns the kind of call this is. virtual Kind getKind() const = 0; Index: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h @@ -254,7 +254,7 @@ assert(hasNoSinksInFrontier()); } - virtual ~NodeBuilder() = default; + virtual ~NodeBuilder() {} /// \brief Generates a node in the ExplodedGraph. ExplodedNode *generateNode(const ProgramPoint &PP, Index: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h @@ -68,7 +68,7 @@ ArrayIndexTy(context.IntTy), ArrayIndexWidth(context.getTypeSize(ArrayIndexTy)) {} - virtual ~SValBuilder() = default; + virtual ~SValBuilder() {} bool haveSameType(const SymExpr *Sym1, const SymExpr *Sym2) { return haveSameType(Sym1->getType(), Sym2->getType()); Index: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h @@ -49,7 +49,7 @@ StoreManager(ProgramStateManager &stateMgr); public: - virtual ~StoreManager() = default; + virtual ~StoreManager() {} /// Return the value bound to specified location in a given state. /// \param[in] store The analysis state. Index: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h @@ -43,7 +43,7 @@ class SubEngine { virtual void anchor(); public: - virtual ~SubEngine() = default; + virtual ~SubEngine() {} virtual ProgramStateRef getInitialState(const LocationContext *InitLoc) = 0; Index: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h @@ -57,7 +57,7 @@ SymExpr(Kind k) : K(k) {} public: - virtual ~SymExpr() = default; + virtual ~SymExpr() {} Kind getKind() const { return K; } @@ -109,7 +109,7 @@ SymbolData(Kind k, SymbolID sym) : SymExpr(k), Sym(sym) {} public: - ~SymbolData() override = default; + ~SymbolData() override {} SymbolID getSymbolID() const { return Sym; } Index: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h @@ -37,7 +37,7 @@ class TaintManager { - TaintManager() = default; + TaintManager() {} }; } Index: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h +++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/WorkList.h @@ -82,7 +82,7 @@ class Visitor { public: - Visitor() = default; + Visitor() {} virtual ~Visitor(); virtual bool visit(const WorkListUnit &U) = 0; }; Index: cfe/trunk/include/clang/Tooling/FileMatchTrie.h =================================================================== --- cfe/trunk/include/clang/Tooling/FileMatchTrie.h +++ cfe/trunk/include/clang/Tooling/FileMatchTrie.h @@ -25,7 +25,7 @@ namespace tooling { struct PathComparator { - virtual ~PathComparator() = default; + virtual ~PathComparator() {} virtual bool equivalent(StringRef FileA, StringRef FileB) const = 0; }; class FileMatchTrieNode; Index: cfe/trunk/include/clang/Tooling/Tooling.h =================================================================== --- cfe/trunk/include/clang/Tooling/Tooling.h +++ cfe/trunk/include/clang/Tooling/Tooling.h @@ -110,7 +110,7 @@ /// newFrontendActionFactory. class SourceFileCallbacks { public: - virtual ~SourceFileCallbacks() = default; + virtual ~SourceFileCallbacks() {} /// \brief Called before a source file is processed by a FrontEndAction. /// \see clang::FrontendAction::BeginSourceFileAction Index: cfe/trunk/lib/ARCMigrate/ARCMT.cpp =================================================================== --- cfe/trunk/lib/ARCMigrate/ARCMT.cpp +++ cfe/trunk/lib/ARCMigrate/ARCMT.cpp @@ -498,7 +498,7 @@ } // end anonymous namespace. /// \brief Anchor for VTable. -MigrationProcess::RewriteListener::~RewriteListener() = default; +MigrationProcess::RewriteListener::~RewriteListener() { } MigrationProcess::MigrationProcess( const CompilerInvocation &CI, Index: cfe/trunk/lib/ARCMigrate/TransformActions.cpp =================================================================== --- cfe/trunk/lib/ARCMigrate/TransformActions.cpp +++ cfe/trunk/lib/ARCMigrate/TransformActions.cpp @@ -594,7 +594,7 @@ return PP.getLocForEndOfToken(loc); } -TransformActions::RewriteReceiver::~RewriteReceiver() = default; +TransformActions::RewriteReceiver::~RewriteReceiver() { } TransformActions::TransformActions(DiagnosticsEngine &diag, CapturedDiagList &capturedDiags, Index: cfe/trunk/lib/ARCMigrate/Transforms.cpp =================================================================== --- cfe/trunk/lib/ARCMigrate/Transforms.cpp +++ cfe/trunk/lib/ARCMigrate/Transforms.cpp @@ -27,7 +27,7 @@ using namespace arcmt; using namespace trans; -ASTTraverser::~ASTTraverser() = default; +ASTTraverser::~ASTTraverser() { } bool MigrationPass::CFBridgingFunctionsDefined() { if (!EnableCFBridgeFns.hasValue()) Index: cfe/trunk/lib/AST/ASTContext.cpp =================================================================== --- cfe/trunk/lib/AST/ASTContext.cpp +++ cfe/trunk/lib/AST/ASTContext.cpp @@ -7914,7 +7914,7 @@ } } -ASTMutationListener::~ASTMutationListener() = default; +ASTMutationListener::~ASTMutationListener() { } void ASTMutationListener::DeducedReturnType(const FunctionDecl *FD, QualType ReturnType) {} @@ -8502,7 +8502,7 @@ llvm_unreachable("Unsupported ABI"); } -CXXABI::~CXXABI() = default; +CXXABI::~CXXABI() {} size_t ASTContext::getSideTableAllocatedMemory() const { return ASTRecordLayouts.getMemorySize() + Index: cfe/trunk/lib/AST/ASTImporter.cpp =================================================================== --- cfe/trunk/lib/AST/ASTImporter.cpp +++ cfe/trunk/lib/AST/ASTImporter.cpp @@ -5344,7 +5344,7 @@ = ToContext.getTranslationUnitDecl(); } -ASTImporter::~ASTImporter() = default; +ASTImporter::~ASTImporter() { } QualType ASTImporter::Import(QualType FromT) { if (FromT.isNull()) Index: cfe/trunk/lib/AST/DeclBase.cpp =================================================================== --- cfe/trunk/lib/AST/DeclBase.cpp +++ cfe/trunk/lib/AST/DeclBase.cpp @@ -236,7 +236,7 @@ //===----------------------------------------------------------------------===// // Out-of-line virtual method providing a home for Decl. -Decl::~Decl() = default; +Decl::~Decl() { } void Decl::setDeclContext(DeclContext *DC) { DeclCtx = DC; @@ -836,7 +836,7 @@ } } -DeclContext::~DeclContext() = default; +DeclContext::~DeclContext() { } /// \brief Find the parent context of this context that will be /// used for unqualified name lookup. Index: cfe/trunk/lib/AST/ExternalASTSource.cpp =================================================================== --- cfe/trunk/lib/AST/ExternalASTSource.cpp +++ cfe/trunk/lib/AST/ExternalASTSource.cpp @@ -21,7 +21,7 @@ using namespace clang; -ExternalASTSource::~ExternalASTSource() = default; +ExternalASTSource::~ExternalASTSource() { } llvm::Optional ExternalASTSource::getSourceDescriptor(unsigned ID) { Index: cfe/trunk/lib/AST/StmtPrinter.cpp =================================================================== --- cfe/trunk/lib/AST/StmtPrinter.cpp +++ cfe/trunk/lib/AST/StmtPrinter.cpp @@ -2338,4 +2338,4 @@ //===----------------------------------------------------------------------===// // Implement virtual destructor. -PrinterHelper::~PrinterHelper() = default; +PrinterHelper::~PrinterHelper() {} Index: cfe/trunk/lib/AST/VTableBuilder.cpp =================================================================== --- cfe/trunk/lib/AST/VTableBuilder.cpp +++ cfe/trunk/lib/AST/VTableBuilder.cpp @@ -2229,7 +2229,7 @@ }); } -VTableLayout::~VTableLayout() = default; +VTableLayout::~VTableLayout() { } ItaniumVTableContext::ItaniumVTableContext(ASTContext &Context) : VTableContextBase(/*MS=*/false) {} Index: cfe/trunk/lib/ASTMatchers/ASTMatchFinder.cpp =================================================================== --- cfe/trunk/lib/ASTMatchers/ASTMatchFinder.cpp +++ cfe/trunk/lib/ASTMatchers/ASTMatchFinder.cpp @@ -902,13 +902,13 @@ : Nodes(Nodes), Context(Context), SourceManager(&Context->getSourceManager()) {} -MatchFinder::MatchCallback::~MatchCallback() = default; -MatchFinder::ParsingDoneTestCallback::~ParsingDoneTestCallback() = default; +MatchFinder::MatchCallback::~MatchCallback() {} +MatchFinder::ParsingDoneTestCallback::~ParsingDoneTestCallback() {} MatchFinder::MatchFinder(MatchFinderOptions Options) : Options(std::move(Options)), ParsingDone(nullptr) {} -MatchFinder::~MatchFinder() = default; +MatchFinder::~MatchFinder() {} void MatchFinder::addMatcher(const DeclarationMatcher &NodeMatch, MatchCallback *Action) { Index: cfe/trunk/lib/ASTMatchers/Dynamic/Marshallers.h =================================================================== --- cfe/trunk/lib/ASTMatchers/Dynamic/Marshallers.h +++ cfe/trunk/lib/ASTMatchers/Dynamic/Marshallers.h @@ -103,7 +103,7 @@ /// arguments, and various other methods for type introspection. class MatcherDescriptor { public: - virtual ~MatcherDescriptor() = default; + virtual ~MatcherDescriptor() {} virtual VariantMatcher create(SourceRange NameRange, ArrayRef Args, Diagnostics *Error) const = 0; @@ -491,7 +491,7 @@ OverloadedMatcherDescriptor(ArrayRef Callbacks) : Overloads(Callbacks.begin(), Callbacks.end()) {} - ~OverloadedMatcherDescriptor() override = default; + ~OverloadedMatcherDescriptor() override {} VariantMatcher create(SourceRange NameRange, ArrayRef Args, Index: cfe/trunk/lib/ASTMatchers/Dynamic/Parser.cpp =================================================================== --- cfe/trunk/lib/ASTMatchers/Dynamic/Parser.cpp +++ cfe/trunk/lib/ASTMatchers/Dynamic/Parser.cpp @@ -257,7 +257,7 @@ const char *CodeCompletionLocation; }; -Parser::Sema::~Sema() = default; +Parser::Sema::~Sema() {} std::vector Parser::Sema::getAcceptedCompletionTypes( llvm::ArrayRef> Context) { @@ -526,7 +526,7 @@ : Tokenizer(Tokenizer), S(S ? S : &*DefaultRegistrySema), NamedValues(NamedValues), Error(Error) {} -Parser::RegistrySema::~RegistrySema() = default; +Parser::RegistrySema::~RegistrySema() {} llvm::Optional Parser::RegistrySema::lookupMatcherCtor(StringRef MatcherName) { Index: cfe/trunk/lib/ASTMatchers/Dynamic/VariantValue.cpp =================================================================== --- cfe/trunk/lib/ASTMatchers/Dynamic/VariantValue.cpp +++ cfe/trunk/lib/ASTMatchers/Dynamic/VariantValue.cpp @@ -75,7 +75,7 @@ return DynTypedMatcher::constructVariadic(Op, NodeKind, DynMatchers); } -VariantMatcher::Payload::~Payload() = default; +VariantMatcher::Payload::~Payload() {} class VariantMatcher::SinglePayload : public VariantMatcher::Payload { public: @@ -113,7 +113,7 @@ PolymorphicPayload(std::vector MatchersIn) : Matchers(std::move(MatchersIn)) {} - ~PolymorphicPayload() override = default; + ~PolymorphicPayload() override {} llvm::Optional getSingleMatcher() const override { if (Matchers.size() != 1) Index: cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp =================================================================== --- cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp +++ cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp @@ -551,7 +551,7 @@ // Cleanup. //===----------------------------------------------------------------------===// -ManagedAnalysis::~ManagedAnalysis() = default; +ManagedAnalysis::~ManagedAnalysis() {} AnalysisDeclContext::~AnalysisDeclContext() { delete forcedBlkExprs; @@ -568,7 +568,7 @@ llvm::DeleteContainerSeconds(Contexts); } -LocationContext::~LocationContext() = default; +LocationContext::~LocationContext() {} LocationContextManager::~LocationContextManager() { clear(); Index: cfe/trunk/lib/Analysis/CFG.cpp =================================================================== --- cfe/trunk/lib/Analysis/CFG.cpp +++ cfe/trunk/lib/Analysis/CFG.cpp @@ -4010,7 +4010,7 @@ } } - ~StmtPrinterHelper() override = default; + ~StmtPrinterHelper() override {} const LangOptions &getLangOpts() const { return LangOpts; } void setBlockID(signed i) { currentBlock = i; } Index: cfe/trunk/lib/Analysis/CodeInjector.cpp =================================================================== --- cfe/trunk/lib/Analysis/CodeInjector.cpp +++ cfe/trunk/lib/Analysis/CodeInjector.cpp @@ -11,5 +11,5 @@ using namespace clang; -CodeInjector::CodeInjector() = default; -CodeInjector::~CodeInjector() = default; +CodeInjector::CodeInjector() {} +CodeInjector::~CodeInjector() {} Index: cfe/trunk/lib/Analysis/Consumed.cpp =================================================================== --- cfe/trunk/lib/Analysis/Consumed.cpp +++ cfe/trunk/lib/Analysis/Consumed.cpp @@ -52,7 +52,7 @@ using namespace consumed; // Key method definition -ConsumedWarningsHandlerBase::~ConsumedWarningsHandlerBase() = default; +ConsumedWarningsHandlerBase::~ConsumedWarningsHandlerBase() {} static SourceLocation getFirstStmtLoc(const CFGBlock *Block) { // Find the source location of the first statement in the block, if the block Index: cfe/trunk/lib/Analysis/FormatString.cpp =================================================================== --- cfe/trunk/lib/Analysis/FormatString.cpp +++ cfe/trunk/lib/Analysis/FormatString.cpp @@ -26,7 +26,7 @@ using namespace clang; // Key function to FormatStringHandler. -FormatStringHandler::~FormatStringHandler() = default; +FormatStringHandler::~FormatStringHandler() {} //===----------------------------------------------------------------------===// // Functions for parsing format strings components in both printf and Index: cfe/trunk/lib/Analysis/ProgramPoint.cpp =================================================================== --- cfe/trunk/lib/Analysis/ProgramPoint.cpp +++ cfe/trunk/lib/Analysis/ProgramPoint.cpp @@ -16,7 +16,7 @@ using namespace clang; -ProgramPointTag::~ProgramPointTag() = default; +ProgramPointTag::~ProgramPointTag() {} ProgramPoint ProgramPoint::getProgramPoint(const Stmt *S, ProgramPoint::Kind K, const LocationContext *LC, Index: cfe/trunk/lib/Analysis/ThreadSafety.cpp =================================================================== --- cfe/trunk/lib/Analysis/ThreadSafety.cpp +++ cfe/trunk/lib/Analysis/ThreadSafety.cpp @@ -48,7 +48,7 @@ using namespace threadSafety; // Key method definition -ThreadSafetyHandler::~ThreadSafetyHandler() = default; +ThreadSafetyHandler::~ThreadSafetyHandler() {} namespace { class TILPrinter : @@ -107,7 +107,7 @@ : CapabilityExpr(CE), LKind(LK), AcquireLoc(Loc), Asserted(Asrt), Declared(Declrd) {} - virtual ~FactEntry() = default; + virtual ~FactEntry() {} LockKind kind() const { return LKind; } SourceLocation loc() const { return AcquireLoc; } Index: cfe/trunk/lib/Analysis/UninitializedValues.cpp =================================================================== --- cfe/trunk/lib/Analysis/UninitializedValues.cpp +++ cfe/trunk/lib/Analysis/UninitializedValues.cpp @@ -837,7 +837,7 @@ : hadUse(numBlocks, false), hadAnyUse(false), currentBlock(0) {} - ~PruneBlocksHandler() override = default; + ~PruneBlocksHandler() override {} /// Records if a CFGBlock had a potential use of an uninitialized variable. llvm::BitVector hadUse; @@ -922,4 +922,4 @@ } } -UninitVariablesHandler::~UninitVariablesHandler() = default; +UninitVariablesHandler::~UninitVariablesHandler() {} Index: cfe/trunk/lib/Basic/Diagnostic.cpp =================================================================== --- cfe/trunk/lib/Basic/Diagnostic.cpp +++ cfe/trunk/lib/Basic/Diagnostic.cpp @@ -393,7 +393,7 @@ } -DiagnosticConsumer::~DiagnosticConsumer() = default; +DiagnosticConsumer::~DiagnosticConsumer() {} void DiagnosticConsumer::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) { @@ -981,7 +981,7 @@ void IgnoringDiagConsumer::anchor() { } -ForwardingDiagnosticConsumer::~ForwardingDiagnosticConsumer() = default; +ForwardingDiagnosticConsumer::~ForwardingDiagnosticConsumer() {} void ForwardingDiagnosticConsumer::HandleDiagnostic( DiagnosticsEngine::Level DiagLevel, Index: cfe/trunk/lib/Basic/FileManager.cpp =================================================================== --- cfe/trunk/lib/Basic/FileManager.cpp +++ cfe/trunk/lib/Basic/FileManager.cpp @@ -605,5 +605,5 @@ } // Virtual destructors for abstract base classes that need live in Basic. -PCHContainerWriter::~PCHContainerWriter() = default; -PCHContainerReader::~PCHContainerReader() = default; +PCHContainerWriter::~PCHContainerWriter() {} +PCHContainerReader::~PCHContainerReader() {} Index: cfe/trunk/lib/Basic/IdentifierTable.cpp =================================================================== --- cfe/trunk/lib/Basic/IdentifierTable.cpp +++ cfe/trunk/lib/Basic/IdentifierTable.cpp @@ -53,9 +53,9 @@ // IdentifierTable Implementation //===----------------------------------------------------------------------===// -IdentifierIterator::~IdentifierIterator() = default; +IdentifierIterator::~IdentifierIterator() { } -IdentifierInfoLookup::~IdentifierInfoLookup() = default; +IdentifierInfoLookup::~IdentifierInfoLookup() {} namespace { /// \brief A simple identifier lookup iterator that represents an Index: cfe/trunk/lib/Basic/SourceManager.cpp =================================================================== --- cfe/trunk/lib/Basic/SourceManager.cpp +++ cfe/trunk/lib/Basic/SourceManager.cpp @@ -2204,7 +2204,7 @@ } } -ExternalSLocEntrySource::~ExternalSLocEntrySource() = default; +ExternalSLocEntrySource::~ExternalSLocEntrySource() { } /// Return the amount of memory used by memory buffers, breaking down /// by heap-backed versus mmap'ed memory. Index: cfe/trunk/lib/Basic/TargetInfo.cpp =================================================================== --- cfe/trunk/lib/Basic/TargetInfo.cpp +++ cfe/trunk/lib/Basic/TargetInfo.cpp @@ -100,7 +100,7 @@ } // Out of line virtual dtor for TargetInfo. -TargetInfo::~TargetInfo() = default; +TargetInfo::~TargetInfo() {} /// getTypeName - Return the user string for the specified integer type enum. /// For example, SignedShort -> "short". Index: cfe/trunk/lib/Basic/VirtualFileSystem.cpp =================================================================== --- cfe/trunk/lib/Basic/VirtualFileSystem.cpp +++ cfe/trunk/lib/Basic/VirtualFileSystem.cpp @@ -84,9 +84,9 @@ return isStatusKnown() && Type != file_type::file_not_found; } -File::~File() = default; +File::~File() {} -FileSystem::~FileSystem() = default; +FileSystem::~FileSystem() {} ErrorOr> FileSystem::getBufferForFile(const llvm::Twine &Name, int64_t FileSize, @@ -315,7 +315,7 @@ return std::error_code(); } -clang::vfs::detail::DirIterImpl::~DirIterImpl() = default; +clang::vfs::detail::DirIterImpl::~DirIterImpl() { } namespace { class OverlayFSDirIterImpl : public clang::vfs::detail::DirIterImpl { @@ -398,7 +398,7 @@ public: InMemoryNode(Status Stat, InMemoryNodeKind Kind) : Stat(std::move(Stat)), Kind(Kind) {} - virtual ~InMemoryNode() = default; + virtual ~InMemoryNode() {} const Status &getStatus() const { return Stat; } InMemoryNodeKind getKind() const { return Kind; } virtual std::string toString(unsigned Indent) const = 0; @@ -482,7 +482,7 @@ llvm::sys::fs::perms::all_all))), UseNormalizedPaths(UseNormalizedPaths) {} -InMemoryFileSystem::~InMemoryFileSystem() = default; +InMemoryFileSystem::~InMemoryFileSystem() {} std::string InMemoryFileSystem::toString() const { return Root->toString(/*Indent=*/0); Index: cfe/trunk/lib/CodeGen/CGBlocks.cpp =================================================================== --- cfe/trunk/lib/CodeGen/CGBlocks.cpp +++ cfe/trunk/lib/CodeGen/CGBlocks.cpp @@ -40,7 +40,7 @@ } // Anchor the vtable to this translation unit. -BlockByrefHelpers::~BlockByrefHelpers() = default; +BlockByrefHelpers::~BlockByrefHelpers() {} /// Build the given block as a global block. static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM, Index: cfe/trunk/lib/CodeGen/CGCUDARuntime.cpp =================================================================== --- cfe/trunk/lib/CodeGen/CGCUDARuntime.cpp +++ cfe/trunk/lib/CodeGen/CGCUDARuntime.cpp @@ -22,7 +22,7 @@ using namespace clang; using namespace CodeGen; -CGCUDARuntime::~CGCUDARuntime() = default; +CGCUDARuntime::~CGCUDARuntime() {} RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, const CUDAKernelCallExpr *E, Index: cfe/trunk/lib/CodeGen/CGCXXABI.cpp =================================================================== --- cfe/trunk/lib/CodeGen/CGCXXABI.cpp +++ cfe/trunk/lib/CodeGen/CGCXXABI.cpp @@ -18,7 +18,7 @@ using namespace clang; using namespace CodeGen; -CGCXXABI::~CGCXXABI() = default; +CGCXXABI::~CGCXXABI() { } void CGCXXABI::ErrorUnsupportedABI(CodeGenFunction &CGF, StringRef S) { DiagnosticsEngine &Diags = CGF.CGM.getDiags(); Index: cfe/trunk/lib/CodeGen/CGCall.cpp =================================================================== --- cfe/trunk/lib/CodeGen/CGCall.cpp +++ cfe/trunk/lib/CodeGen/CGCall.cpp @@ -584,7 +584,7 @@ const TypeExpansionKind Kind; TypeExpansion(TypeExpansionKind K) : Kind(K) {} - virtual ~TypeExpansion() = default; + virtual ~TypeExpansion() {} }; struct ConstantArrayExpansion : TypeExpansion { Index: cfe/trunk/lib/CodeGen/CGObjC.cpp =================================================================== --- cfe/trunk/lib/CodeGen/CGObjC.cpp +++ cfe/trunk/lib/CodeGen/CGObjC.cpp @@ -3058,4 +3058,4 @@ } -CGObjCRuntime::~CGObjCRuntime() = default; +CGObjCRuntime::~CGObjCRuntime() {} Index: cfe/trunk/lib/CodeGen/CGOpenCLRuntime.cpp =================================================================== --- cfe/trunk/lib/CodeGen/CGOpenCLRuntime.cpp +++ cfe/trunk/lib/CodeGen/CGOpenCLRuntime.cpp @@ -22,7 +22,7 @@ using namespace clang; using namespace CodeGen; -CGOpenCLRuntime::~CGOpenCLRuntime() = default; +CGOpenCLRuntime::~CGOpenCLRuntime() {} void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF, const VarDecl &D) { Index: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.h =================================================================== --- cfe/trunk/lib/CodeGen/CGOpenMPRuntime.h +++ cfe/trunk/lib/CodeGen/CGOpenMPRuntime.h @@ -369,7 +369,7 @@ public: explicit CGOpenMPRuntime(CodeGenModule &CGM); - virtual ~CGOpenMPRuntime() = default; + virtual ~CGOpenMPRuntime() {} virtual void clear(); /// \brief Emits outlined function for the specified OpenMP parallel directive Index: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp =================================================================== --- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp +++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp @@ -1801,7 +1801,7 @@ return Address(V, Addr.getAlignment()); } -CodeGenFunction::CGCapturedStmtInfo::~CGCapturedStmtInfo() = default; +CodeGenFunction::CGCapturedStmtInfo::~CGCapturedStmtInfo() { } CodeGenFunction::SanitizerScope::SanitizerScope(CodeGenFunction *CGF) : CGF(CGF) { Index: cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp =================================================================== --- cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp +++ cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp @@ -36,7 +36,8 @@ MDHelper(VMContext), Root(nullptr), Char(nullptr) { } -CodeGenTBAA::~CodeGenTBAA() = default; +CodeGenTBAA::~CodeGenTBAA() { +} llvm::MDNode *CodeGenTBAA::getRoot() { // Define the root of the tree. This identifies the tree, so that Index: cfe/trunk/lib/CodeGen/TargetInfo.cpp =================================================================== --- cfe/trunk/lib/CodeGen/TargetInfo.cpp +++ cfe/trunk/lib/CodeGen/TargetInfo.cpp @@ -66,7 +66,7 @@ return Address::invalid(); } -ABIInfo::~ABIInfo() = default; +ABIInfo::~ABIInfo() {} static CGCXXABI::RecordArgABI getRecordArgABI(const RecordType *RT, CGCXXABI &CXXABI) { Index: cfe/trunk/lib/Driver/Tool.cpp =================================================================== --- cfe/trunk/lib/Driver/Tool.cpp +++ cfe/trunk/lib/Driver/Tool.cpp @@ -19,4 +19,5 @@ ResponseSupport(_ResponseSupport), ResponseEncoding(_ResponseEncoding), ResponseFlag(_ResponseFlag) {} -Tool::~Tool() = default; +Tool::~Tool() { +} Index: cfe/trunk/lib/Driver/ToolChain.cpp =================================================================== --- cfe/trunk/lib/Driver/ToolChain.cpp +++ cfe/trunk/lib/Driver/ToolChain.cpp @@ -72,7 +72,8 @@ << A->getValue() << A->getAsString(Args); } -ToolChain::~ToolChain() = default; +ToolChain::~ToolChain() { +} vfs::FileSystem &ToolChain::getVFS() const { return getDriver().getVFS(); } Index: cfe/trunk/lib/Driver/ToolChains.cpp =================================================================== --- cfe/trunk/lib/Driver/ToolChains.cpp +++ cfe/trunk/lib/Driver/ToolChains.cpp @@ -156,9 +156,9 @@ } } -Darwin::~Darwin() = default; +Darwin::~Darwin() {} -MachO::~MachO() = default; +MachO::~MachO() {} std::string MachO::ComputeEffectiveClangTriple(const ArgList &Args, types::ID InputType) const { @@ -2102,7 +2102,7 @@ getProgramPaths().push_back(getDriver().Dir); } -Generic_GCC::~Generic_GCC() = default; +Generic_GCC::~Generic_GCC() {} Tool *Generic_GCC::getTool(Action::ActionClass AC) const { switch (AC) { @@ -2339,7 +2339,7 @@ GetTargetCPU(Args), InstalledDir, LibPaths); } -HexagonToolChain::~HexagonToolChain() = default; +HexagonToolChain::~HexagonToolChain() {} Tool *HexagonToolChain::buildAssembler() const { return new tools::hexagon::Assembler(*this); @@ -2642,7 +2642,7 @@ getProgramPaths().push_back(Path); } -TCEToolChain::~TCEToolChain() = default; +TCEToolChain::~TCEToolChain() {} bool TCEToolChain::IsMathErrnoDefault() const { return true; } @@ -3987,7 +3987,7 @@ } } -MyriadToolChain::~MyriadToolChain() = default; +MyriadToolChain::~MyriadToolChain() {} void MyriadToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs, ArgStringList &CC1Args) const { Index: cfe/trunk/lib/Format/BreakableToken.h =================================================================== --- cfe/trunk/lib/Format/BreakableToken.h +++ cfe/trunk/lib/Format/BreakableToken.h @@ -36,7 +36,7 @@ /// \brief Contains starting character index and length of split. typedef std::pair Split; - virtual ~BreakableToken() = default; + virtual ~BreakableToken() {} /// \brief Returns the number of lines in this token in the original code. virtual unsigned getLineCount() const = 0; Index: cfe/trunk/lib/Format/FormatToken.cpp =================================================================== --- cfe/trunk/lib/Format/FormatToken.cpp +++ cfe/trunk/lib/Format/FormatToken.cpp @@ -67,7 +67,7 @@ } } -TokenRole::~TokenRole() = default; +TokenRole::~TokenRole() {} void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {} Index: cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp =================================================================== --- cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp +++ cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp @@ -477,7 +477,7 @@ UnwrappedLineFormatter *BlockFormatter) : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), BlockFormatter(BlockFormatter) {} - virtual ~LineFormatter() = default; + virtual ~LineFormatter() {} /// \brief Formats an \c AnnotatedLine and returns the penalty. /// Index: cfe/trunk/lib/Format/UnwrappedLineParser.h =================================================================== --- cfe/trunk/lib/Format/UnwrappedLineParser.h +++ cfe/trunk/lib/Format/UnwrappedLineParser.h @@ -51,7 +51,7 @@ class UnwrappedLineConsumer { public: - virtual ~UnwrappedLineConsumer() = default; + virtual ~UnwrappedLineConsumer() {} virtual void consumeUnwrappedLine(const UnwrappedLine &Line) = 0; virtual void finishRun() = 0; }; Index: cfe/trunk/lib/Format/UnwrappedLineParser.cpp =================================================================== --- cfe/trunk/lib/Format/UnwrappedLineParser.cpp +++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp @@ -25,7 +25,7 @@ class FormatTokenSource { public: - virtual ~FormatTokenSource() = default; + virtual ~FormatTokenSource() {} virtual FormatToken *getNextToken() = 0; virtual unsigned getPosition() = 0; Index: cfe/trunk/lib/Frontend/ASTUnit.cpp =================================================================== --- cfe/trunk/lib/Frontend/ASTUnit.cpp +++ cfe/trunk/lib/Frontend/ASTUnit.cpp @@ -2841,7 +2841,7 @@ #else // NDEBUG ASTUnit::ConcurrencyState::ConcurrencyState() { Mutex = nullptr; } -ASTUnit::ConcurrencyState::~ConcurrencyState() = default; +ASTUnit::ConcurrencyState::~ConcurrencyState() {} void ASTUnit::ConcurrencyState::start() {} void ASTUnit::ConcurrencyState::finish() {} Index: cfe/trunk/lib/Frontend/CacheTokens.cpp =================================================================== --- cfe/trunk/lib/Frontend/CacheTokens.cpp +++ cfe/trunk/lib/Frontend/CacheTokens.cpp @@ -47,7 +47,7 @@ Offset TokenData, PPCondData; public: - PTHEntry() = default; + PTHEntry() {} PTHEntry(Offset td, Offset ppcd) : TokenData(td), PPCondData(ppcd) {} @@ -547,7 +547,7 @@ PTHMap &PM; public: StatListener(PTHMap &pm) : PM(pm) {} - ~StatListener() override = default; + ~StatListener() override {} LookupResult getStat(const char *Path, FileData &Data, bool isFile, std::unique_ptr *F, Index: cfe/trunk/lib/Frontend/CompilerInvocation.cpp =================================================================== --- cfe/trunk/lib/Frontend/CompilerInvocation.cpp +++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp @@ -59,7 +59,7 @@ HeaderSearchOpts(new HeaderSearchOptions(X.getHeaderSearchOpts())), PreprocessorOpts(new PreprocessorOptions(X.getPreprocessorOpts())) {} -CompilerInvocationBase::~CompilerInvocationBase() = default; +CompilerInvocationBase::~CompilerInvocationBase() {} //===----------------------------------------------------------------------===// // Deserialization (from args) Index: cfe/trunk/lib/Frontend/DependencyFile.cpp =================================================================== --- cfe/trunk/lib/Frontend/DependencyFile.cpp +++ cfe/trunk/lib/Frontend/DependencyFile.cpp @@ -137,7 +137,7 @@ (needSystemDependencies() || !IsSystem); } -DependencyCollector::~DependencyCollector() = default; +DependencyCollector::~DependencyCollector() { } void DependencyCollector::attachToPreprocessor(Preprocessor &PP) { PP.addPPCallbacks( llvm::make_unique(*this, PP.getSourceManager())); Index: cfe/trunk/lib/Frontend/DiagnosticRenderer.cpp =================================================================== --- cfe/trunk/lib/Frontend/DiagnosticRenderer.cpp +++ cfe/trunk/lib/Frontend/DiagnosticRenderer.cpp @@ -69,7 +69,7 @@ DiagnosticOptions *DiagOpts) : LangOpts(LangOpts), DiagOpts(DiagOpts), LastLevel() {} -DiagnosticRenderer::~DiagnosticRenderer() = default; +DiagnosticRenderer::~DiagnosticRenderer() {} namespace { @@ -577,7 +577,7 @@ emitSingleMacroExpansion(*I, Level, Ranges, SM); } -DiagnosticNoteRenderer::~DiagnosticNoteRenderer() = default; +DiagnosticNoteRenderer::~DiagnosticNoteRenderer() {} void DiagnosticNoteRenderer::emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, Index: cfe/trunk/lib/Frontend/FrontendAction.cpp =================================================================== --- cfe/trunk/lib/Frontend/FrontendAction.cpp +++ cfe/trunk/lib/Frontend/FrontendAction.cpp @@ -126,7 +126,7 @@ FrontendAction::FrontendAction() : Instance(nullptr) {} -FrontendAction::~FrontendAction() = default; +FrontendAction::~FrontendAction() {} void FrontendAction::setCurrentInput(const FrontendInputFile &CurrentInput, std::unique_ptr AST) { Index: cfe/trunk/lib/Frontend/MultiplexConsumer.cpp =================================================================== --- cfe/trunk/lib/Frontend/MultiplexConsumer.cpp +++ cfe/trunk/lib/Frontend/MultiplexConsumer.cpp @@ -262,7 +262,7 @@ } } -MultiplexConsumer::~MultiplexConsumer() = default; +MultiplexConsumer::~MultiplexConsumer() {} void MultiplexConsumer::Initialize(ASTContext &Context) { for (auto &Consumer : Consumers) Index: cfe/trunk/lib/Frontend/Rewrite/FixItRewriter.cpp =================================================================== --- cfe/trunk/lib/Frontend/Rewrite/FixItRewriter.cpp +++ cfe/trunk/lib/Frontend/Rewrite/FixItRewriter.cpp @@ -200,4 +200,4 @@ Diags.setClient(this, false); } -FixItOptions::~FixItOptions() = default; +FixItOptions::~FixItOptions() {} Index: cfe/trunk/lib/Frontend/Rewrite/FrontendActions.cpp =================================================================== --- cfe/trunk/lib/Frontend/Rewrite/FrontendActions.cpp +++ cfe/trunk/lib/Frontend/Rewrite/FrontendActions.cpp @@ -38,7 +38,7 @@ } FixItAction::FixItAction() {} -FixItAction::~FixItAction() = default; +FixItAction::~FixItAction() {} std::unique_ptr FixItAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { Index: cfe/trunk/lib/Frontend/Rewrite/RewriteModernObjC.cpp =================================================================== --- cfe/trunk/lib/Frontend/Rewrite/RewriteModernObjC.cpp +++ cfe/trunk/lib/Frontend/Rewrite/RewriteModernObjC.cpp @@ -244,7 +244,7 @@ DiagnosticsEngine &D, const LangOptions &LOpts, bool silenceMacroWarn, bool LineInfo); - ~RewriteModernObjC() override = default; + ~RewriteModernObjC() override {} void HandleTranslationUnit(ASTContext &C) override; Index: cfe/trunk/lib/Frontend/Rewrite/RewriteObjC.cpp =================================================================== --- cfe/trunk/lib/Frontend/Rewrite/RewriteObjC.cpp +++ cfe/trunk/lib/Frontend/Rewrite/RewriteObjC.cpp @@ -193,7 +193,7 @@ DiagnosticsEngine &D, const LangOptions &LOpts, bool silenceMacroWarn); - ~RewriteObjC() override = default; + ~RewriteObjC() override {} void HandleTranslationUnit(ASTContext &C) override; @@ -512,7 +512,7 @@ D, LOpts, silenceMacroWarn) {} - ~RewriteObjCFragileABI() override = default; + ~RewriteObjCFragileABI() override {} void Initialize(ASTContext &context) override; // Rewriting metadata Index: cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter.cpp =================================================================== --- cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter.cpp +++ cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter.cpp @@ -62,7 +62,7 @@ DiagnosticOptions *DiagOpts) : DiagnosticNoteRenderer(LangOpts, DiagOpts), Writer(Writer) {} - ~SDiagsRenderer() override = default; + ~SDiagsRenderer() override {} protected: void emitDiagnosticMessage(SourceLocation Loc, @@ -159,7 +159,7 @@ EmitPreamble(); } - ~SDiagsWriter() override = default; + ~SDiagsWriter() override {} void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override; Index: cfe/trunk/lib/Frontend/TextDiagnostic.cpp =================================================================== --- cfe/trunk/lib/Frontend/TextDiagnostic.cpp +++ cfe/trunk/lib/Frontend/TextDiagnostic.cpp @@ -669,7 +669,7 @@ DiagnosticOptions *DiagOpts) : DiagnosticRenderer(LangOpts, DiagOpts), OS(OS) {} -TextDiagnostic::~TextDiagnostic() = default; +TextDiagnostic::~TextDiagnostic() {} void TextDiagnostic::emitDiagnosticMessage(SourceLocation Loc, Index: cfe/trunk/lib/Index/CommentToXML.cpp =================================================================== --- cfe/trunk/lib/Index/CommentToXML.cpp +++ cfe/trunk/lib/Index/CommentToXML.cpp @@ -1128,7 +1128,7 @@ } CommentToXMLConverter::CommentToXMLConverter() : FormatInMemoryUniqueId(0) {} -CommentToXMLConverter::~CommentToXMLConverter() = default; +CommentToXMLConverter::~CommentToXMLConverter() {} void CommentToXMLConverter::convertCommentToHTML(const FullComment *FC, SmallVectorImpl &HTML, Index: cfe/trunk/lib/Lex/HeaderSearch.cpp =================================================================== --- cfe/trunk/lib/Lex/HeaderSearch.cpp +++ cfe/trunk/lib/Lex/HeaderSearch.cpp @@ -50,7 +50,7 @@ return ControllingMacro; } -ExternalHeaderFileInfoSource::~ExternalHeaderFileInfoSource() = default; +ExternalHeaderFileInfoSource::~ExternalHeaderFileInfoSource() {} HeaderSearch::HeaderSearch(IntrusiveRefCntPtr HSOpts, SourceManager &SourceMgr, DiagnosticsEngine &Diags, Index: cfe/trunk/lib/Lex/PPLexerChange.cpp =================================================================== --- cfe/trunk/lib/Lex/PPLexerChange.cpp +++ cfe/trunk/lib/Lex/PPLexerChange.cpp @@ -24,7 +24,7 @@ #include "llvm/Support/Path.h" using namespace clang; -PPCallbacks::~PPCallbacks() = default; +PPCallbacks::~PPCallbacks() {} //===----------------------------------------------------------------------===// // Miscellaneous Methods. Index: cfe/trunk/lib/Lex/PTHLexer.cpp =================================================================== --- cfe/trunk/lib/Lex/PTHLexer.cpp +++ cfe/trunk/lib/Lex/PTHLexer.cpp @@ -424,7 +424,8 @@ StringIdLookup(std::move(stringIdLookup)), NumIds(numIds), PP(nullptr), SpellingBase(spellingBase), OriginalSourceFile(originalSourceFile) {} -PTHManager::~PTHManager() = default; +PTHManager::~PTHManager() { +} static void InvalidPTH(DiagnosticsEngine &Diags, const char *Msg) { Diags.Report(Diags.getCustomDiagID(DiagnosticsEngine::Error, "%0")) << Msg; Index: cfe/trunk/lib/Lex/Pragma.cpp =================================================================== --- cfe/trunk/lib/Lex/Pragma.cpp +++ cfe/trunk/lib/Lex/Pragma.cpp @@ -31,7 +31,8 @@ #include "llvm/Support/raw_ostream.h" // Out-of-line destructor to provide a home for the class. -PragmaHandler::~PragmaHandler() = default; +PragmaHandler::~PragmaHandler() { +} //===----------------------------------------------------------------------===// // EmptyPragmaHandler Implementation. Index: cfe/trunk/lib/Lex/PreprocessingRecord.cpp =================================================================== --- cfe/trunk/lib/Lex/PreprocessingRecord.cpp +++ cfe/trunk/lib/Lex/PreprocessingRecord.cpp @@ -19,7 +19,7 @@ using namespace clang; -ExternalPreprocessingRecordSource::~ExternalPreprocessingRecordSource() = default; +ExternalPreprocessingRecordSource::~ExternalPreprocessingRecordSource() { } InclusionDirective::InclusionDirective(PreprocessingRecord &PPRec, Index: cfe/trunk/lib/Lex/Preprocessor.cpp =================================================================== --- cfe/trunk/lib/Lex/Preprocessor.cpp +++ cfe/trunk/lib/Lex/Preprocessor.cpp @@ -53,7 +53,7 @@ using namespace clang; //===----------------------------------------------------------------------===// -ExternalPreprocessorSource::~ExternalPreprocessorSource() = default; +ExternalPreprocessorSource::~ExternalPreprocessorSource() { } Preprocessor::Preprocessor(IntrusiveRefCntPtr PPOpts, DiagnosticsEngine &diags, LangOptions &opts, @@ -897,11 +897,11 @@ return true; } -ModuleLoader::~ModuleLoader() = default; +ModuleLoader::~ModuleLoader() { } -CommentHandler::~CommentHandler() = default; +CommentHandler::~CommentHandler() { } -CodeCompletionHandler::~CodeCompletionHandler() = default; +CodeCompletionHandler::~CodeCompletionHandler() { } void Preprocessor::createPreprocessingRecord() { if (Record) Index: cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp =================================================================== --- cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp +++ cfe/trunk/lib/Parse/ParseCXXInlineMethods.cpp @@ -222,7 +222,7 @@ Toks.push_back(Eof); } -Parser::LateParsedDeclaration::~LateParsedDeclaration() = default; +Parser::LateParsedDeclaration::~LateParsedDeclaration() {} void Parser::LateParsedDeclaration::ParseLexedMethodDeclarations() {} void Parser::LateParsedDeclaration::ParseLexedMemberInitializers() {} void Parser::LateParsedDeclaration::ParseLexedMethodDefs() {} Index: cfe/trunk/lib/Rewrite/TokenRewriter.cpp =================================================================== --- cfe/trunk/lib/Rewrite/TokenRewriter.cpp +++ cfe/trunk/lib/Rewrite/TokenRewriter.cpp @@ -46,7 +46,8 @@ } } -TokenRewriter::~TokenRewriter() = default; +TokenRewriter::~TokenRewriter() { +} /// RemapIterator - Convert from token_iterator (a const iterator) to Index: cfe/trunk/lib/Sema/AttributeList.cpp =================================================================== --- cfe/trunk/lib/Sema/AttributeList.cpp +++ cfe/trunk/lib/Sema/AttributeList.cpp @@ -44,7 +44,7 @@ // Go ahead and configure all the inline capacity. This is just a memset. FreeLists.resize(InlineFreeListsCapacity); } -AttributeFactory::~AttributeFactory() = default; +AttributeFactory::~AttributeFactory() {} static size_t getFreeListIndexForSize(size_t size) { assert(size >= sizeof(AttributeList)); Index: cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp =================================================================== --- cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp +++ cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp @@ -426,7 +426,7 @@ // Code completion consumer implementation //===----------------------------------------------------------------------===// -CodeCompleteConsumer::~CodeCompleteConsumer() = default; +CodeCompleteConsumer::~CodeCompleteConsumer() { } void PrintingCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &SemaRef, Index: cfe/trunk/lib/Sema/MultiplexExternalSemaSource.cpp =================================================================== --- cfe/trunk/lib/Sema/MultiplexExternalSemaSource.cpp +++ cfe/trunk/lib/Sema/MultiplexExternalSemaSource.cpp @@ -28,7 +28,7 @@ } // pin the vtable here. -MultiplexExternalSemaSource::~MultiplexExternalSemaSource() = default; +MultiplexExternalSemaSource::~MultiplexExternalSemaSource() {} ///\brief Appends new source to the source list. /// Index: cfe/trunk/lib/Sema/ScopeInfo.cpp =================================================================== --- cfe/trunk/lib/Sema/ScopeInfo.cpp +++ cfe/trunk/lib/Sema/ScopeInfo.cpp @@ -232,6 +232,6 @@ assert(VD); } -FunctionScopeInfo::~FunctionScopeInfo() = default; -BlockScopeInfo::~BlockScopeInfo() = default; -CapturedRegionScopeInfo::~CapturedRegionScopeInfo() = default; +FunctionScopeInfo::~FunctionScopeInfo() { } +BlockScopeInfo::~BlockScopeInfo() { } +CapturedRegionScopeInfo::~CapturedRegionScopeInfo() { } Index: cfe/trunk/lib/Sema/Sema.cpp =================================================================== --- cfe/trunk/lib/Sema/Sema.cpp +++ cfe/trunk/lib/Sema/Sema.cpp @@ -1255,7 +1255,7 @@ } // Pin this vtable to this file. -ExternalSemaSource::~ExternalSemaSource() = default; +ExternalSemaSource::~ExternalSemaSource() {} void ExternalSemaSource::ReadMethodPool(Selector Sel) { } Index: cfe/trunk/lib/Sema/SemaDeclCXX.cpp =================================================================== --- cfe/trunk/lib/Sema/SemaDeclCXX.cpp +++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp @@ -9567,8 +9567,8 @@ } public: - ExprBuilder() = default; - virtual ~ExprBuilder() = default; + ExprBuilder() {} + virtual ~ExprBuilder() {} virtual Expr *build(Sema &S, SourceLocation Loc) const = 0; }; Index: cfe/trunk/lib/Sema/SemaLookup.cpp =================================================================== --- cfe/trunk/lib/Sema/SemaLookup.cpp +++ cfe/trunk/lib/Sema/SemaLookup.cpp @@ -3172,7 +3172,7 @@ //---------------------------------------------------------------------------- // Search for all visible declarations. //---------------------------------------------------------------------------- -VisibleDeclConsumer::~VisibleDeclConsumer() = default; +VisibleDeclConsumer::~VisibleDeclConsumer() { } bool VisibleDeclConsumer::includeHiddenDecls() const { return false; } Index: cfe/trunk/lib/Sema/SemaOpenMP.cpp =================================================================== --- cfe/trunk/lib/Sema/SemaOpenMP.cpp +++ cfe/trunk/lib/Sema/SemaOpenMP.cpp @@ -56,7 +56,7 @@ ArrayRef Arr; }; struct MatchesAlways { - MatchesAlways() = default; + MatchesAlways() {} template bool operator()(T) { return true; } }; Index: cfe/trunk/lib/Sema/SemaPseudoObject.cpp =================================================================== --- cfe/trunk/lib/Sema/SemaPseudoObject.cpp +++ cfe/trunk/lib/Sema/SemaPseudoObject.cpp @@ -202,7 +202,7 @@ : S(S), ResultIndex(PseudoObjectExpr::NoResult), GenericLoc(genericLoc) {} - virtual ~PseudoOpBuilder() = default; + virtual ~PseudoOpBuilder() {} /// Add a normal semantic expression. void addSemanticExpr(Expr *semantic) { Index: cfe/trunk/lib/Sema/TreeTransform.h =================================================================== --- cfe/trunk/lib/Sema/TreeTransform.h +++ cfe/trunk/lib/Sema/TreeTransform.h @@ -3600,7 +3600,7 @@ const TemplateArgumentLoc *operator->() const { return &Arg; } }; - TemplateArgumentLocInventIterator() = default; + TemplateArgumentLocInventIterator() { } explicit TemplateArgumentLocInventIterator(TreeTransform &Self, InputIterator Iter) @@ -5249,7 +5249,7 @@ }; - TemplateArgumentLocContainerIterator() = default; + TemplateArgumentLocContainerIterator() {} TemplateArgumentLocContainerIterator(ArgLocContainer &Container, unsigned Index) Index: cfe/trunk/lib/Serialization/ASTCommon.cpp =================================================================== --- cfe/trunk/lib/Serialization/ASTCommon.cpp +++ cfe/trunk/lib/Serialization/ASTCommon.cpp @@ -21,7 +21,7 @@ using namespace clang; // Give ASTDeserializationListener's VTable a home. -ASTDeserializationListener::~ASTDeserializationListener() = default; +ASTDeserializationListener::~ASTDeserializationListener() { } serialization::TypeIdx serialization::TypeIdxFromBuiltin(const BuiltinType *BT) { Index: cfe/trunk/lib/Serialization/ASTReader.cpp =================================================================== --- cfe/trunk/lib/Serialization/ASTReader.cpp +++ cfe/trunk/lib/Serialization/ASTReader.cpp @@ -164,7 +164,7 @@ // PCH validator implementation //===----------------------------------------------------------------------===// -ASTReaderListener::~ASTReaderListener() = default; +ASTReaderListener::~ASTReaderListener() {} /// \brief Compare the given set of language options against an existing set of /// language options. Index: cfe/trunk/lib/Serialization/GeneratePCH.cpp =================================================================== --- cfe/trunk/lib/Serialization/GeneratePCH.cpp +++ cfe/trunk/lib/Serialization/GeneratePCH.cpp @@ -34,7 +34,8 @@ Buffer->IsComplete = false; } -PCHGenerator::~PCHGenerator() = default; +PCHGenerator::~PCHGenerator() { +} void PCHGenerator::HandleTranslationUnit(ASTContext &Ctx) { // Don't create a PCH if there were fatal failures during module loading. Index: cfe/trunk/lib/Serialization/MultiOnDiskHashTable.h =================================================================== --- cfe/trunk/lib/Serialization/MultiOnDiskHashTable.h +++ cfe/trunk/lib/Serialization/MultiOnDiskHashTable.h @@ -161,7 +161,7 @@ friend class MultiOnDiskHashTableGenerator; public: - MultiOnDiskHashTable() = default; + MultiOnDiskHashTable() {} MultiOnDiskHashTable(MultiOnDiskHashTable &&O) : Tables(std::move(O.Tables)), PendingOverrides(std::move(O.PendingOverrides)) { Index: cfe/trunk/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp @@ -142,7 +142,7 @@ : cfg(cfg), Ctx(ctx), BR(br), Checker(checker), AC(ac), Parents(parents), Escaped(escaped), currentBlock(nullptr) {} - ~DeadStoreObs() override = default; + ~DeadStoreObs() override {} bool isLive(const LiveVariables::LivenessValues &Live, const VarDecl *D) { if (Live.isLive(D)) Index: cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -46,7 +46,7 @@ "The maximum number of bug reports in the same equivalence class " "where at least one report is valid (not suppressed)"); -BugReporterVisitor::~BugReporterVisitor() = default; +BugReporterVisitor::~BugReporterVisitor() {} void BugReporterContext::anchor() {} @@ -2731,9 +2731,9 @@ // Methods for BugReporter and subclasses. //===----------------------------------------------------------------------===// -BugReportEquivClass::~BugReportEquivClass() = default; -GRBugReporter::~GRBugReporter() = default; -BugReporterData::~BugReporterData() = default; +BugReportEquivClass::~BugReportEquivClass() { } +GRBugReporter::~GRBugReporter() { } +BugReporterData::~BugReporterData() {} ExplodedGraph &GRBugReporter::getGraph() { return Eng.getGraph(); } Index: cfe/trunk/lib/StaticAnalyzer/Core/ConstraintManager.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/ConstraintManager.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/ConstraintManager.cpp @@ -16,7 +16,7 @@ using namespace clang; using namespace ento; -ConstraintManager::~ConstraintManager() = default; +ConstraintManager::~ConstraintManager() {} static DefinedSVal getLocFromSymbol(const ProgramStateRef &State, SymbolRef Sym) { Index: cfe/trunk/lib/StaticAnalyzer/Core/CoreEngine.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/CoreEngine.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/CoreEngine.cpp @@ -38,7 +38,7 @@ // Worklist classes for exploration of reachable states. //===----------------------------------------------------------------------===// -WorkList::Visitor::~Visitor() = default; +WorkList::Visitor::~Visitor() {} namespace { class DFS : public WorkList { @@ -100,7 +100,7 @@ // Place the dstor for WorkList here because it contains virtual member // functions, and we the code for the dstor generated in one compilation unit. -WorkList::~WorkList() = default; +WorkList::~WorkList() {} WorkList *WorkList::makeDFS() { return new DFS(); } WorkList *WorkList::makeBFS() { return new BFS(); } Index: cfe/trunk/lib/StaticAnalyzer/Core/ExplodedGraph.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/ExplodedGraph.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/ExplodedGraph.cpp @@ -31,7 +31,7 @@ //===----------------------------------------------------------------------===// // An out of line virtual method to provide a home for the class vtable. -ExplodedNode::Auditor::~Auditor() = default; +ExplodedNode::Auditor::~Auditor() {} #ifndef NDEBUG static ExplodedNode::Auditor* NodeAuditor = nullptr; @@ -50,7 +50,7 @@ ExplodedGraph::ExplodedGraph() : NumNodes(0), ReclaimNodeInterval(0) {} -ExplodedGraph::~ExplodedGraph() = default; +ExplodedGraph::~ExplodedGraph() {} //===----------------------------------------------------------------------===// // Node reclamation. Index: cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp @@ -135,11 +135,12 @@ // Object destruction. //===----------------------------------------------------------------------===// -MemRegion::~MemRegion() = default; +MemRegion::~MemRegion() {} -// All regions and their data are BumpPtrAllocated. No need to call their -// destructors. -MemRegionManager::~MemRegionManager() = default; +MemRegionManager::~MemRegionManager() { + // All regions and their data are BumpPtrAllocated. No need to call + // their destructors. +} //===----------------------------------------------------------------------===// // Basic methods. Index: cfe/trunk/lib/StaticAnalyzer/Core/PathDiagnostic.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/PathDiagnostic.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/PathDiagnostic.cpp @@ -55,11 +55,11 @@ PathDiagnosticPiece::PathDiagnosticPiece(Kind k, DisplayHint hint) : kind(k), Hint(hint), LastInMainSourceFile(false) {} -PathDiagnosticPiece::~PathDiagnosticPiece() = default; -PathDiagnosticEventPiece::~PathDiagnosticEventPiece() = default; -PathDiagnosticCallPiece::~PathDiagnosticCallPiece() = default; -PathDiagnosticControlFlowPiece::~PathDiagnosticControlFlowPiece() = default; -PathDiagnosticMacroPiece::~PathDiagnosticMacroPiece() = default; +PathDiagnosticPiece::~PathDiagnosticPiece() {} +PathDiagnosticEventPiece::~PathDiagnosticEventPiece() {} +PathDiagnosticCallPiece::~PathDiagnosticCallPiece() {} +PathDiagnosticControlFlowPiece::~PathDiagnosticControlFlowPiece() {} +PathDiagnosticMacroPiece::~PathDiagnosticMacroPiece() {} void PathPieces::flattenTo(PathPieces &Primary, PathPieces &Current, @@ -103,7 +103,7 @@ } -PathDiagnostic::~PathDiagnostic() = default; +PathDiagnostic::~PathDiagnostic() {} PathDiagnostic::PathDiagnostic(StringRef CheckName, const Decl *declWithIssue, StringRef bugtype, StringRef verboseDesc, @@ -1119,7 +1119,7 @@ ID.AddString(*I); } -StackHintGenerator::~StackHintGenerator() = default; +StackHintGenerator::~StackHintGenerator() {} std::string StackHintGeneratorForSymbol::getMessage(const ExplodedNode *N){ ProgramPoint P = N->getLocation(); Index: cfe/trunk/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp @@ -37,7 +37,7 @@ const LangOptions &LangOpts, bool supportsMultipleFiles); - ~PlistDiagnostics() override = default; + ~PlistDiagnostics() override {} void FlushDiagnosticsImpl(std::vector &Diags, FilesMade *filesMade) override; Index: cfe/trunk/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp @@ -21,7 +21,7 @@ namespace ento { -SimpleConstraintManager::~SimpleConstraintManager() = default; +SimpleConstraintManager::~SimpleConstraintManager() {} bool SimpleConstraintManager::canReasonAbout(SVal X) const { Optional SymVal = X.getAs(); Index: cfe/trunk/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp @@ -29,7 +29,7 @@ SimpleSValBuilder(llvm::BumpPtrAllocator &alloc, ASTContext &context, ProgramStateManager &stateMgr) : SValBuilder(alloc, context, stateMgr) {} - ~SimpleSValBuilder() override = default; + ~SimpleSValBuilder() override {} SVal evalMinus(NonLoc val) override; SVal evalComplement(NonLoc val) override; Index: cfe/trunk/lib/StaticAnalyzer/Core/Store.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Core/Store.cpp +++ cfe/trunk/lib/StaticAnalyzer/Core/Store.cpp @@ -489,7 +489,7 @@ Ctx)); } -StoreManager::BindingsHandler::~BindingsHandler() = default; +StoreManager::BindingsHandler::~BindingsHandler() {} bool StoreManager::FindUniqueBinding::HandleBinding(StoreManager& SMgr, Store store, Index: cfe/trunk/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp +++ cfe/trunk/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp @@ -92,7 +92,7 @@ public: ClangDiagPathDiagConsumer(DiagnosticsEngine &Diag) : Diag(Diag), IncludePath(false) {} - ~ClangDiagPathDiagConsumer() override = default; + ~ClangDiagPathDiagConsumer() override {} StringRef getName() const override { return "ClangDiags"; } bool supportsLogicalOpControlFlow() const override { return true; } Index: cfe/trunk/lib/Tooling/CompilationDatabase.cpp =================================================================== --- cfe/trunk/lib/Tooling/CompilationDatabase.cpp +++ cfe/trunk/lib/Tooling/CompilationDatabase.cpp @@ -32,7 +32,7 @@ using namespace clang; using namespace tooling; -CompilationDatabase::~CompilationDatabase() = default; +CompilationDatabase::~CompilationDatabase() {} std::unique_ptr CompilationDatabase::loadFromDirectory(StringRef BuildDirectory, @@ -106,7 +106,7 @@ return DB; } -CompilationDatabasePlugin::~CompilationDatabasePlugin() = default; +CompilationDatabasePlugin::~CompilationDatabasePlugin() {} namespace { // Helper for recursively searching through a chain of actions and collecting Index: cfe/trunk/lib/Tooling/Tooling.cpp =================================================================== --- cfe/trunk/lib/Tooling/Tooling.cpp +++ cfe/trunk/lib/Tooling/Tooling.cpp @@ -37,9 +37,9 @@ namespace clang { namespace tooling { -ToolAction::~ToolAction() = default; +ToolAction::~ToolAction() {} -FrontendActionFactory::~FrontendActionFactory() = default; +FrontendActionFactory::~FrontendActionFactory() {} // FIXME: This file contains structural duplication with other parts of the // code that sets up a compiler to run tools on it, and we should refactor @@ -319,7 +319,7 @@ appendArgumentsAdjuster(getClangSyntaxOnlyAdjuster()); } -ClangTool::~ClangTool() = default; +ClangTool::~ClangTool() {} void ClangTool::mapVirtualFile(StringRef FilePath, StringRef Content) { MappedFileContents.push_back(std::make_pair(FilePath, Content)); Index: cfe/trunk/tools/diagtool/DiagTool.cpp =================================================================== --- cfe/trunk/tools/diagtool/DiagTool.cpp +++ cfe/trunk/tools/diagtool/DiagTool.cpp @@ -22,7 +22,7 @@ llvm::StringRef toolDesc) : cmd(toolCmd), description(toolDesc) {} -DiagTool::~DiagTool() = default; +DiagTool::~DiagTool() {} typedef llvm::StringMap ToolMap; static inline ToolMap *getTools(void *v) { return static_cast(v); } Index: cfe/trunk/tools/libclang/CIndexDiagnostic.h =================================================================== --- cfe/trunk/tools/libclang/CIndexDiagnostic.h +++ cfe/trunk/tools/libclang/CIndexDiagnostic.h @@ -117,7 +117,7 @@ : CXDiagnosticImpl(StoredDiagnosticKind), Diag(Diag), LangOpts(LangOpts) { } - ~CXStoredDiagnostic() override = default; + ~CXStoredDiagnostic() override {} /// \brief Return the severity of the diagnostic. CXDiagnosticSeverity getSeverity() const override; Index: cfe/trunk/tools/libclang/CIndexDiagnostic.cpp =================================================================== --- cfe/trunk/tools/libclang/CIndexDiagnostic.cpp +++ cfe/trunk/tools/libclang/CIndexDiagnostic.cpp @@ -30,14 +30,14 @@ using namespace clang::cxdiag; using namespace llvm; -CXDiagnosticSetImpl::~CXDiagnosticSetImpl() = default; +CXDiagnosticSetImpl::~CXDiagnosticSetImpl() {} void CXDiagnosticSetImpl::appendDiagnostic(std::unique_ptr D) { Diagnostics.push_back(std::move(D)); } -CXDiagnosticImpl::~CXDiagnosticImpl() = default; +CXDiagnosticImpl::~CXDiagnosticImpl() {} namespace { class CXDiagnosticCustomNoteImpl : public CXDiagnosticImpl { @@ -48,7 +48,7 @@ : CXDiagnosticImpl(CustomNoteDiagnosticKind), Message(Msg), Loc(L) {} - ~CXDiagnosticCustomNoteImpl() override = default; + ~CXDiagnosticCustomNoteImpl() override {} CXDiagnosticSeverity getSeverity() const override { return CXDiagnostic_Note; @@ -92,7 +92,7 @@ : DiagnosticNoteRenderer(LangOpts, DiagOpts), CurrentSet(mainSet), MainSet(mainSet) {} - ~CXDiagnosticRenderer() override = default; + ~CXDiagnosticRenderer() override {} void beginDiagnostic(DiagOrStoredDiag D, DiagnosticsEngine::Level Level) override { Index: cfe/trunk/tools/libclang/CXLoadedDiagnostic.cpp =================================================================== --- cfe/trunk/tools/libclang/CXLoadedDiagnostic.cpp +++ cfe/trunk/tools/libclang/CXLoadedDiagnostic.cpp @@ -38,7 +38,7 @@ class CXLoadedDiagnosticSetImpl : public CXDiagnosticSetImpl { public: CXLoadedDiagnosticSetImpl() : CXDiagnosticSetImpl(true), FakeFiles(FO) {} - ~CXLoadedDiagnosticSetImpl() override = default; + ~CXLoadedDiagnosticSetImpl() override {} llvm::BumpPtrAllocator Alloc; Strings Categories; @@ -63,7 +63,7 @@ // Cleanup. //===----------------------------------------------------------------------===// -CXLoadedDiagnostic::~CXLoadedDiagnostic() = default; +CXLoadedDiagnostic::~CXLoadedDiagnostic() {} //===----------------------------------------------------------------------===// // Public CXLoadedDiagnostic methods. Index: cfe/trunk/tools/libclang/Indexing.cpp =================================================================== --- cfe/trunk/tools/libclang/Indexing.cpp +++ cfe/trunk/tools/libclang/Indexing.cpp @@ -151,7 +151,9 @@ public: SessionSkipBodyData() : Mux(/*recursive=*/false) {} - ~SessionSkipBodyData() = default; + ~SessionSkipBodyData() { + //llvm::errs() << "RegionData: " << Skipped.size() << " - " << Skipped.getMemorySize() << "\n"; + } void copyTo(PPRegionSetTy &Set) { llvm::MutexGuard MG(Mux); Index: cfe/trunk/unittests/AST/EvaluateAsRValueTest.cpp =================================================================== --- cfe/trunk/unittests/AST/EvaluateAsRValueTest.cpp +++ cfe/trunk/unittests/AST/EvaluateAsRValueTest.cpp @@ -66,7 +66,7 @@ private: class Consumer : public clang::ASTConsumer { public: - ~Consumer() override = default; + ~Consumer() override {} void HandleTranslationUnit(clang::ASTContext &Ctx) override { VarInfoMap VarInfo; Index: cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.h =================================================================== --- cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.h +++ cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.h @@ -26,7 +26,7 @@ class BoundNodesCallback { public: - virtual ~BoundNodesCallback() = default; + virtual ~BoundNodesCallback() {} virtual bool run(const BoundNodes *BoundNodes) = 0; virtual bool run(const BoundNodes *BoundNodes, ASTContext *Context) = 0; virtual void onEndOfTranslationUnit() {} Index: cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp =================================================================== --- cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp +++ cfe/trunk/unittests/ASTMatchers/Dynamic/ParserTest.cpp @@ -23,7 +23,7 @@ class MockSema : public Parser::Sema { public: - ~MockSema() override = default; + ~MockSema() override {} uint64_t expectMatcher(StringRef MatcherName) { // Optimizations on the matcher framework make simple matchers like Index: cfe/trunk/unittests/Tooling/CompilationDatabaseTest.cpp =================================================================== --- cfe/trunk/unittests/Tooling/CompilationDatabaseTest.cpp +++ cfe/trunk/unittests/Tooling/CompilationDatabaseTest.cpp @@ -173,7 +173,7 @@ } struct FakeComparator : public PathComparator { - ~FakeComparator() override = default; + ~FakeComparator() override {} bool equivalent(StringRef FileA, StringRef FileB) const override { return FileA.equals_lower(FileB); } Index: cfe/trunk/unittests/Tooling/RewriterTestContext.h =================================================================== --- cfe/trunk/unittests/Tooling/RewriterTestContext.h +++ cfe/trunk/unittests/Tooling/RewriterTestContext.h @@ -50,7 +50,7 @@ OverlayFileSystem->pushOverlay(InMemoryFileSystem); } - ~RewriterTestContext() = default; + ~RewriterTestContext() {} FileID createInMemoryFile(StringRef Name, StringRef Content) { std::unique_ptr Source = Index: cfe/trunk/unittests/Tooling/TestVisitor.h =================================================================== --- cfe/trunk/unittests/Tooling/TestVisitor.h +++ cfe/trunk/unittests/Tooling/TestVisitor.h @@ -35,9 +35,9 @@ template class TestVisitor : public RecursiveASTVisitor { public: - TestVisitor() = default; + TestVisitor() { } - virtual ~TestVisitor() = default; + virtual ~TestVisitor() { } enum Language { Lang_C,