[PATCH] Make DynTypedNode have the dynamic type of the object, instead of its static type.

Manuel Klimek klimek at google.com
Fri Sep 19 08:03:21 PDT 2014


LG

================
Comment at: include/clang/AST/ASTTypeTraits.h:56-60
@@ -55,2 +55,7 @@
 
+  /// \brief Construct an identifier for the dynamic type of the node
+  static ASTNodeKind getFromNode(const Decl &D);
+  static ASTNodeKind getFromNode(const Stmt &S);
+  static ASTNodeKind getFromNode(const Type &T);
+
   /// \brief Returns \c true if \c this and \c Other represent the same kind.
----------------
/// \{
/// \}

http://reviews.llvm.org/D5411






More information about the cfe-commits mailing list