]> granicus.if.org Git - clang/commitdiff
[analyzer] Address Jordan's review comments.
authorAnna Zaks <ganna@apple.com>
Fri, 24 Aug 2012 18:43:09 +0000 (18:43 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 24 Aug 2012 18:43:09 +0000 (18:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162579 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeInfo.h

index 4a487f20fbf726fb1e237b4db0299345a7b786ce..9755c123a25dbd7d7db997c276f8c0cb268e4281 100644 (file)
 
 namespace clang {
 namespace ento {
-/// \class DynamicTypeInfo
-///
+
 /// \brief Stores the currently inferred strictest bound on the runtime type
 /// of a region in a given state along the analysis path.
 class DynamicTypeInfo {
-public:
-
 private:
   QualType T;
   bool CanBeASubClass;
@@ -30,7 +27,7 @@ public:
   DynamicTypeInfo(QualType WithType, bool CanBeSub = true)
     : T(WithType), CanBeASubClass(CanBeSub) {}
 
-  /// \brief Return true if no dynamic type info is available.
+  /// \brief Return false if no dynamic type info is available.
   bool isValid() const { return !T.isNull(); }
 
   /// \brief Returns the currently inferred upper bound on the runtime type.
@@ -41,7 +38,7 @@ public:
   bool canBeASubClass() const { return CanBeASubClass; }
 
   void Profile(llvm::FoldingSetNodeID &ID) const {
-    T.Profile(ID);
+    ID.Add(T);
     ID.AddInteger((unsigned)CanBeASubClass);
   }
   bool operator==(const DynamicTypeInfo &X) const {
@@ -49,6 +46,7 @@ public:
   }
 };
 
-}} // end clang::ento namespace
+} // end ento
+} // end clang
 
 #endif