diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-14 06:02:07 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-14 06:02:07 +0000 |
commit | b45acb8a1644ff65cc3cd1793528829a5fbc6415 (patch) | |
tree | f463276df7a76109f78988834f6e1cba6046a810 /clang/lib/Analysis | |
parent | aca3c7c6f4f27ac30b1e9e892c0b99311edd04cd (diff) | |
download | bcm5719-llvm-b45acb8a1644ff65cc3cd1793528829a5fbc6415.tar.gz bcm5719-llvm-b45acb8a1644ff65cc3cd1793528829a5fbc6415.zip |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 203893
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r-- | clang/lib/Analysis/CFG.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Analysis/UninitializedValues.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp index 72b1150de7d..9dd962278ce 100644 --- a/clang/lib/Analysis/CFG.cpp +++ b/clang/lib/Analysis/CFG.cpp @@ -3629,7 +3629,7 @@ public: void setBlockID(signed i) { currentBlock = i; } void setStmtID(unsigned i) { currStmt = i; } - virtual bool handledStmt(Stmt *S, raw_ostream &OS) { + bool handledStmt(Stmt *S, raw_ostream &OS) override { StmtMapTy::iterator I = StmtMap.find(S); if (I == StmtMap.end()) diff --git a/clang/lib/Analysis/UninitializedValues.cpp b/clang/lib/Analysis/UninitializedValues.cpp index 8e8ccb0c948..a011878dd60 100644 --- a/clang/lib/Analysis/UninitializedValues.cpp +++ b/clang/lib/Analysis/UninitializedValues.cpp @@ -792,8 +792,8 @@ struct PruneBlocksHandler : public UninitVariablesHandler { /// The current block to scribble use information. unsigned currentBlock; - virtual void handleUseOfUninitVariable(const VarDecl *vd, - const UninitUse &use) { + void handleUseOfUninitVariable(const VarDecl *vd, + const UninitUse &use) override { hadUse[currentBlock] = true; hadAnyUse = true; } @@ -801,7 +801,7 @@ struct PruneBlocksHandler : public UninitVariablesHandler { /// Called when the uninitialized variable analysis detects the /// idiom 'int x = x'. All other uses of 'x' within the initializer /// are handled by handleUseOfUninitVariable. - virtual void handleSelfInit(const VarDecl *vd) { + void handleSelfInit(const VarDecl *vd) override { hadUse[currentBlock] = true; hadAnyUse = true; } |