llvm.org GIT mirror llvm / 68f404d
Fix -Wnon-virtual-dtor warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154063 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 8 years ago
1 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
148148 OwningPtr &Doc;
149149 SMRange SourceRange;
150150
151 ~Node();
152
151153 private:
152154 unsigned int TypeID;
153155 StringRef Anchor;
165167 static inline bool classof(const Node *N) {
166168 return N->getType() == NK_Null;
167169 }
170
171 protected:
172 ~NullNode();
168173 };
169174
170175 /// @brief A scalar node is an opaque datum that can be presented as a
199204 return N->getType() == NK_Scalar;
200205 }
201206
207 protected:
208 ~ScalarNode();
209
202210 private:
203211 StringRef Value;
204212
245253 static inline bool classof(const Node *N) {
246254 return N->getType() == NK_KeyValue;
247255 }
256
257 protected:
258 ~KeyValueNode();
248259
249260 private:
250261 Node *Key;
361372 static inline bool classof(const Node *N) {
362373 return N->getType() == NK_Mapping;
363374 }
375
376 protected:
377 ~MappingNode();
364378
365379 private:
366380 MappingType Type;
425439 return N->getType() == NK_Sequence;
426440 }
427441
442 protected:
443 ~SequenceNode();
444
428445 private:
429446 SequenceType SeqType;
430447 bool IsAtBeginning;
449466 static inline bool classof(const Node *N) {
450467 return N->getType() == NK_Alias;
451468 }
469
470 protected:
471 ~AliasNode();
452472
453473 private:
454474 StringRef Name;