Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit d162035

Browse files
committed
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
1 parent e83bf34 commit d162035

File tree

150 files changed

+232
-222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+232
-222
lines changed

Diff for: include/clang/AST/ASTConsumer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ASTConsumer {
4343
public:
4444
ASTConsumer() : SemaConsumer(false) { }
4545

46-
virtual ~ASTConsumer() = default;
46+
virtual ~ASTConsumer() {}
4747

4848
/// Initialize - This is called to initialize the consumer, providing the
4949
/// ASTContext.

Diff for: include/clang/AST/CanonicalType.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ template<typename T>
333333
class CanProxy : public CanProxyAdaptor<T> {
334334
public:
335335
/// \brief Build a NULL proxy.
336-
CanProxy() = default;
336+
CanProxy() { }
337337

338338
/// \brief Build a proxy to the given canonical type.
339339
CanProxy(CanQual<T> Stored) { this->Stored = Stored; }
@@ -389,7 +389,7 @@ struct CanTypeIterator
389389
CanQualType,
390390
typename std::iterator_traits<InputIterator>::difference_type,
391391
CanProxy<Type>, CanQualType> {
392-
CanTypeIterator() = default;
392+
CanTypeIterator() {}
393393
explicit CanTypeIterator(InputIterator Iter)
394394
: CanTypeIterator::iterator_adaptor_base(std::move(Iter)) {}
395395

Diff for: include/clang/AST/DeclFriend.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class CXXRecordDecl::friend_iterator {
180180
friend class CXXRecordDecl;
181181
explicit friend_iterator(FriendDecl *Ptr) : Ptr(Ptr) {}
182182
public:
183-
friend_iterator() = default;
183+
friend_iterator() {}
184184

185185
typedef FriendDecl *value_type;
186186
typedef FriendDecl *reference;

Diff for: include/clang/AST/DeclTemplate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ class RedeclarableTemplateDecl : public TemplateDecl,
664664
typename std::iterator_traits<typename llvm::FoldingSetVector<
665665
EntryType>::iterator>::iterator_category,
666666
DeclType *, ptrdiff_t, DeclType *, DeclType *> {
667-
SpecIterator() = default;
667+
SpecIterator() {}
668668
explicit SpecIterator(
669669
typename llvm::FoldingSetVector<EntryType>::iterator SetIter)
670670
: SpecIterator::iterator_adaptor_base(std::move(SetIter)) {}

Diff for: include/clang/AST/Expr.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class Expr : public Stmt {
337337
{}
338338

339339
public:
340-
Classification() = default;
340+
Classification() {}
341341

342342
Kinds getKind() const { return static_cast<Kinds>(Kind); }
343343
ModifiableType getModifiable() const {
@@ -4076,7 +4076,7 @@ class DesignatedInitExpr : public Expr {
40764076
friend class DesignatedInitExpr;
40774077

40784078
public:
4079-
Designator() = default;
4079+
Designator() {}
40804080

40814081
/// @brief Initializes a field designator.
40824082
Designator(const IdentifierInfo *FieldName, SourceLocation DotLoc,

Diff for: include/clang/AST/ExprCXX.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2278,7 +2278,7 @@ class ArrayTypeTraitExpr : public Expr {
22782278
: Expr(ArrayTypeTraitExprClass, Empty), ATT(0), Value(false),
22792279
QueriedType() { }
22802280

2281-
virtual ~ArrayTypeTraitExpr() = default;
2281+
virtual ~ArrayTypeTraitExpr() { }
22822282

22832283
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
22842284
SourceLocation getLocEnd() const LLVM_READONLY { return RParen; }

Diff for: include/clang/AST/Mangle.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class MangleContext {
6464
ManglerKind Kind)
6565
: Context(Context), Diags(Diags), Kind(Kind) {}
6666

67-
virtual ~MangleContext() = default;
67+
virtual ~MangleContext() { }
6868

6969
ASTContext &getASTContext() const { return Context; }
7070

Diff for: include/clang/AST/MangleNumberingContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class VarDecl;
3232
/// literals within a particular context.
3333
class MangleNumberingContext : public RefCountedBase<MangleNumberingContext> {
3434
public:
35-
virtual ~MangleNumberingContext() = default;
35+
virtual ~MangleNumberingContext() {}
3636

3737
/// \brief Retrieve the mangling number of a new lambda expression with the
3838
/// given call operator within this context.

Diff for: include/clang/AST/Redeclarable.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Decl *getPrimaryMergedDecl(Decl *D);
248248
template<typename decl_type>
249249
class Mergeable {
250250
public:
251-
Mergeable() = default;
251+
Mergeable() {}
252252

253253
/// \brief Return the first declaration of this declaration or itself if this
254254
/// is the only declaration.

Diff for: include/clang/AST/StmtIterator.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class StmtIteratorImpl : public StmtIteratorBase,
8181
protected:
8282
StmtIteratorImpl(const StmtIteratorBase& RHS) : StmtIteratorBase(RHS) {}
8383
public:
84-
StmtIteratorImpl() = default;
84+
StmtIteratorImpl() {}
8585
StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {}
8686
StmtIteratorImpl(Decl **dgi, Decl **dge) : StmtIteratorBase(dgi, dge) {}
8787
StmtIteratorImpl(const VariableArrayType *t) : StmtIteratorBase(t) {}

Diff for: include/clang/AST/UnresolvedSet.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class UnresolvedSetImpl {
5959
// UnresolvedSet.
6060
private:
6161
template <unsigned N> friend class UnresolvedSet;
62-
UnresolvedSetImpl() = default;
62+
UnresolvedSetImpl() {}
6363
UnresolvedSetImpl(const UnresolvedSetImpl &) {}
6464

6565
public:

Diff for: include/clang/AST/VTableBuilder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class VTableContextBase {
298298

299299
bool isMicrosoft() const { return IsMicrosoftABI; }
300300

301-
virtual ~VTableContextBase() = default;
301+
virtual ~VTableContextBase() {}
302302

303303
protected:
304304
typedef llvm::DenseMap<const CXXMethodDecl *, ThunkInfoVectorTy> ThunksMapTy;

Diff for: include/clang/ASTMatchers/ASTMatchersInternal.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class BoundNodesTreeBuilder {
131131
/// BoundNodesTree.
132132
class Visitor {
133133
public:
134-
virtual ~Visitor() = default;
134+
virtual ~Visitor() {}
135135

136136
/// \brief Called multiple times during a single call to VisitMatches(...).
137137
///
@@ -209,7 +209,7 @@ class DynMatcherInterface : public RefCountedBaseVPTR {
209209
template <typename T>
210210
class MatcherInterface : public DynMatcherInterface {
211211
public:
212-
~MatcherInterface() override = default;
212+
~MatcherInterface() override {}
213213

214214
/// \brief Returns true if 'Node' can be matched.
215215
///
@@ -798,7 +798,7 @@ class ASTMatchFinder {
798798
AMM_ParentOnly
799799
};
800800

801-
virtual ~ASTMatchFinder() = default;
801+
virtual ~ASTMatchFinder() {}
802802

803803
/// \brief Returns true if the given class is directly or indirectly derived
804804
/// from a base type matching \c base.
@@ -1376,7 +1376,7 @@ class VariadicDynCastAllOfMatcher
13761376
BindableMatcher<SourceT>, Matcher<TargetT>,
13771377
makeDynCastAllOfComposite<SourceT, TargetT> > {
13781378
public:
1379-
VariadicDynCastAllOfMatcher() = default;
1379+
VariadicDynCastAllOfMatcher() {}
13801380
};
13811381

13821382
/// \brief A \c VariadicAllOfMatcher<T> object is a variadic functor that takes
@@ -1394,7 +1394,7 @@ class VariadicAllOfMatcher : public llvm::VariadicFunction<
13941394
BindableMatcher<T>, Matcher<T>,
13951395
makeAllOfComposite<T> > {
13961396
public:
1397-
VariadicAllOfMatcher() = default;
1397+
VariadicAllOfMatcher() {}
13981398
};
13991399

14001400
/// \brief Matches nodes of type \c TLoc for which the inner
@@ -1515,7 +1515,7 @@ class TypeTraversePolymorphicMatcher {
15151515

15161516
struct Func : public llvm::VariadicFunction<Self, Matcher<InnerTBase>,
15171517
&Self::create> {
1518-
Func() = default;
1518+
Func() {}
15191519
};
15201520

15211521
private:

Diff for: include/clang/Analysis/Analyses/FormatString.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ enum PositionContext { FieldWidthPos = 0, PrecisionPos = 1 };
606606

607607
class FormatStringHandler {
608608
public:
609-
FormatStringHandler() = default;
609+
FormatStringHandler() {}
610610
virtual ~FormatStringHandler();
611611

612612
virtual void HandleNullChar(const char *nullCharacter) {}

Diff for: include/clang/Analysis/Analyses/LiveVariables.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class LiveVariables : public ManagedAnalysis {
5353
class Observer {
5454
virtual void anchor();
5555
public:
56-
virtual ~Observer() = default;
56+
virtual ~Observer() {}
5757

5858
/// A callback invoked right before invoking the
5959
/// liveness transfer function on the given statement.

Diff for: include/clang/Analysis/Analyses/ReachableCode.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ enum UnreachableKind {
4848
class Callback {
4949
virtual void anchor();
5050
public:
51-
virtual ~Callback() = default;
51+
virtual ~Callback() {}
5252
virtual void HandleUnreachable(UnreachableKind UK,
5353
SourceLocation L,
5454
SourceRange ConditionVal,

Diff for: include/clang/Analysis/Analyses/ThreadSafetyTraverse.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ template <class Self>
176176
class VisitReducer : public Traversal<Self, VisitReducerBase>,
177177
public VisitReducerBase {
178178
public:
179-
VisitReducer() = default;
179+
VisitReducer() {}
180180

181181
public:
182182
R_SExpr reduceNull() { return true; }

Diff for: include/clang/Analysis/Analyses/UninitializedValues.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class UninitUse {
9999

100100
class UninitVariablesHandler {
101101
public:
102-
UninitVariablesHandler() = default;
102+
UninitVariablesHandler() {}
103103
virtual ~UninitVariablesHandler();
104104

105105
/// Called when the uninitialized variable is used at the given expression.

Diff for: include/clang/Analysis/AnalysisContext.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace idx { class TranslationUnit; }
4444
/// to AnalysisDeclContext.
4545
class ManagedAnalysis {
4646
protected:
47-
ManagedAnalysis() = default;
47+
ManagedAnalysis() {}
4848
public:
4949
virtual ~ManagedAnalysis();
5050

@@ -289,7 +289,7 @@ class StackFrameContext : public LocationContext {
289289
Block(blk), Index(idx) {}
290290

291291
public:
292-
~StackFrameContext() override = default;
292+
~StackFrameContext() override {}
293293

294294
const Stmt *getCallSite() const { return CallSite; }
295295

@@ -324,7 +324,7 @@ class ScopeContext : public LocationContext {
324324
: LocationContext(Scope, ctx, parent), Enter(s) {}
325325

326326
public:
327-
~ScopeContext() override = default;
327+
~ScopeContext() override {}
328328

329329
void Profile(llvm::FoldingSetNodeID &ID) override;
330330

@@ -352,7 +352,7 @@ class BlockInvocationContext : public LocationContext {
352352
: LocationContext(Block, ctx, parent), BD(bd), ContextData(contextData) {}
353353

354354
public:
355-
~BlockInvocationContext() override = default;
355+
~BlockInvocationContext() override {}
356356

357357
const BlockDecl *getBlockDecl() const { return BD; }
358358

Diff for: include/clang/Analysis/CFG.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -704,11 +704,11 @@ class CFGBlock {
704704
/// operator error is found when building the CFG.
705705
class CFGCallback {
706706
public:
707-
CFGCallback() = default;
707+
CFGCallback() {}
708708
virtual void compareAlwaysTrue(const BinaryOperator *B, bool isAlwaysTrue) {}
709709
virtual void compareBitwiseEquality(const BinaryOperator *B,
710710
bool isAlwaysTrue) {}
711-
virtual ~CFGCallback() = default;
711+
virtual ~CFGCallback() {}
712712
};
713713

714714
/// CFG - Represents a source-level, intra-procedural CFG that represents the

Diff for: include/clang/Basic/FileSystemStatCache.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class FileSystemStatCache {
5151
std::unique_ptr<FileSystemStatCache> NextStatCache;
5252

5353
public:
54-
virtual ~FileSystemStatCache() = default;
54+
virtual ~FileSystemStatCache() {}
5555

5656
enum LookupResult {
5757
CacheExists, ///< We know the file exists and its cached stat data.

Diff for: include/clang/Basic/IdentifierTable.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class IdentifierIterator {
385385
void operator=(const IdentifierIterator &) = delete;
386386

387387
protected:
388-
IdentifierIterator() = default;
388+
IdentifierIterator() { }
389389

390390
public:
391391
virtual ~IdentifierIterator();

Diff for: include/clang/Driver/Job.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Command {
8888
// FIXME: This really shouldn't be copyable, but is currently copied in some
8989
// error handling in Driver::generateCompilationDiagnostics.
9090
Command(const Command &) = default;
91-
virtual ~Command() = default;
91+
virtual ~Command() {}
9292

9393
virtual void Print(llvm::raw_ostream &OS, const char *Terminator, bool Quote,
9494
CrashReportInfo *CrashInfo = nullptr) const;

Diff for: include/clang/Edit/EditsReceiver.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace edit {
2020

2121
class EditsReceiver {
2222
public:
23-
virtual ~EditsReceiver() = default;
23+
virtual ~EditsReceiver() { }
2424

2525
virtual void insert(SourceLocation loc, StringRef text) = 0;
2626
virtual void replace(CharSourceRange range, StringRef text) = 0;

Diff for: include/clang/Frontend/SerializedDiagnosticReader.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ struct Location {
5858
/// the various constructs that are found in serialized diagnostics.
5959
class SerializedDiagnosticReader {
6060
public:
61-
SerializedDiagnosticReader() = default;
62-
virtual ~SerializedDiagnosticReader() = default;
61+
SerializedDiagnosticReader() {}
62+
virtual ~SerializedDiagnosticReader() {}
6363

6464
/// \brief Read the diagnostics in \c File
6565
std::error_code readDiagnostics(StringRef File);

Diff for: include/clang/Frontend/VerifyDiagnosticConsumer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class VerifyDiagnosticConsumer: public DiagnosticConsumer,
161161
unsigned Min, Max;
162162
bool MatchAnyLine;
163163

164-
virtual ~Directive() = default;
164+
virtual ~Directive() { }
165165

166166
// Returns true if directive text is valid.
167167
// Otherwise returns false and populates E.

Diff for: include/clang/Lex/ModuleMap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ModuleMapParser;
4040
/// reads module map files.
4141
class ModuleMapCallbacks {
4242
public:
43-
virtual ~ModuleMapCallbacks() = default;
43+
virtual ~ModuleMapCallbacks() {}
4444

4545
/// \brief Called when a module map file has been read.
4646
///

Diff for: include/clang/Lex/PTHLexer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PTHLexer : public PreprocessorLexer {
6464
PTHLexer(Preprocessor& pp, FileID FID, const unsigned char *D,
6565
const unsigned char* ppcond, PTHManager &PM);
6666
public:
67-
~PTHLexer() override = default;
67+
~PTHLexer() override {}
6868

6969
/// Lex - Return the next token.
7070
bool Lex(Token &Tok);

Diff for: include/clang/Lex/PreprocessorLexer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class PreprocessorLexer {
8181
ParsingFilename(false),
8282
LexingRawMode(false) {}
8383

84-
virtual ~PreprocessorLexer() = default;
84+
virtual ~PreprocessorLexer() {}
8585

8686
virtual void IndirectLex(Token& Result) = 0;
8787

Diff for: include/clang/Sema/Sema.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ class Sema {
13131313
TypeDiagnoser(bool Suppressed = false) : Suppressed(Suppressed) { }
13141314

13151315
virtual void diagnose(Sema &S, SourceLocation Loc, QualType T) = 0;
1316-
virtual ~TypeDiagnoser() = default;
1316+
virtual ~TypeDiagnoser() {}
13171317
};
13181318

13191319
static int getPrintable(int I) { return I; }
@@ -2297,7 +2297,7 @@ class Sema {
22972297
virtual SemaDiagnosticBuilder diagnoseConversion(
22982298
Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) = 0;
22992299

2300-
virtual ~ContextualImplicitConverter() = default;
2300+
virtual ~ContextualImplicitConverter() {}
23012301
};
23022302

23032303
class ICEConvertDiagnoser : public ContextualImplicitConverter {
@@ -8597,7 +8597,7 @@ class Sema {
85978597

85988598
virtual void diagnoseNotICE(Sema &S, SourceLocation Loc, SourceRange SR) =0;
85998599
virtual void diagnoseFold(Sema &S, SourceLocation Loc, SourceRange SR);
8600-
virtual ~VerifyICEDiagnoser() = default;
8600+
virtual ~VerifyICEDiagnoser() { }
86018601
};
86028602

86038603
/// VerifyIntegerConstantExpression - Verifies that an expression is an ICE,

Diff for: include/clang/Sema/TypoCorrection.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class CorrectionCandidateCallback {
255255
IsObjCIvarLookup(false), IsAddressOfOperand(false), Typo(Typo),
256256
TypoNNS(TypoNNS) {}
257257

258-
virtual ~CorrectionCandidateCallback() = default;
258+
virtual ~CorrectionCandidateCallback() {}
259259

260260
/// \brief Simple predicate used by the default RankCandidate to
261261
/// determine whether to return an edit distance of 0 or InvalidDistance.

0 commit comments

Comments
 (0)