]> granicus.if.org Git - clang/commitdiff
Add "virtual" keywords for clarity.
authorTed Kremenek <kremenek@apple.com>
Mon, 2 Nov 2009 18:54:58 +0000 (18:54 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 2 Nov 2009 18:54:58 +0000 (18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85815 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/AnalysisContext.h

index 8e02ccf38209fb683505e14ae21e20d7cd9d435b..e8e80fd286b9034a717375f9f4f03fc54caf05ed 100644 (file)
@@ -102,7 +102,7 @@ public:
     return Ctx->getSelfDecl();
   }
 
-  void Profile(llvm::FoldingSetNodeID &ID) {
+  virtual void Profile(llvm::FoldingSetNodeID &ID) {
     Profile(ID, Kind, Ctx, Parent);
   }
 
@@ -122,7 +122,7 @@ public:
 
   Stmt const *getCallSite() const { return CallSite; }
 
-  void Profile(llvm::FoldingSetNodeID &ID) {
+  virtual void Profile(llvm::FoldingSetNodeID &ID) {
     Profile(ID, getAnalysisContext(), getParent(), CallSite);
   }
 
@@ -142,7 +142,7 @@ public:
                const Stmt *s)
     : LocationContext(Scope, ctx, parent), Enter(s) {}
 
-  void Profile(llvm::FoldingSetNodeID &ID) {
+  virtual void Profile(llvm::FoldingSetNodeID &ID) {
     Profile(ID, getAnalysisContext(), getParent(), Enter);
   }