Author: djg Date: Mon Jul 2 09:53:37 2007 New Revision: 37839 URL: http://llvm.org/viewvc/llvm-project?rev=37839&view=rev Log: Add explicit keywords.
Modified: llvm/trunk/include/llvm/Analysis/LoopPass.h llvm/trunk/include/llvm/CallGraphSCCPass.h llvm/trunk/include/llvm/CodeGen/MachineFunctionPass.h llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp llvm/trunk/lib/Analysis/CFGPrinter.cpp Modified: llvm/trunk/include/llvm/Analysis/LoopPass.h URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LoopPass.h?rev=37839&r1=37838&r2=37839&view=diff ============================================================================== --- llvm/trunk/include/llvm/Analysis/LoopPass.h (original) +++ llvm/trunk/include/llvm/Analysis/LoopPass.h Mon Jul 2 09:53:37 2007 @@ -29,9 +29,9 @@ class LoopPass : public Pass { public: - LoopPass(intptr_t pid) : Pass(pid) {} + explicit LoopPass(intptr_t pid) : Pass(pid) {} - // runOnLoop - THis method should be implemented by the subclass to perform + // runOnLoop - This method should be implemented by the subclass to perform // whatever action is necessary for the specfied Loop. virtual bool runOnLoop (Loop *L, LPPassManager &LPM) = 0; virtual bool runOnFunctionBody (Function &F, LPPassManager &LPM) { Modified: llvm/trunk/include/llvm/CallGraphSCCPass.h URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CallGraphSCCPass.h?rev=37839&r1=37838&r2=37839&view=diff ============================================================================== --- llvm/trunk/include/llvm/CallGraphSCCPass.h (original) +++ llvm/trunk/include/llvm/CallGraphSCCPass.h Mon Jul 2 09:53:37 2007 @@ -31,7 +31,7 @@ struct CallGraphSCCPass : public Pass { - CallGraphSCCPass(intptr_t pid) : Pass(pid) {} + explicit CallGraphSCCPass(intptr_t pid) : Pass(pid) {} /// doInitialization - This method is called before the SCC's of the program /// has been processed, allowing the pass to do initialization as necessary. Modified: llvm/trunk/include/llvm/CodeGen/MachineFunctionPass.h URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFunctionPass.h?rev=37839&r1=37838&r2=37839&view=diff ============================================================================== --- llvm/trunk/include/llvm/CodeGen/MachineFunctionPass.h (original) +++ llvm/trunk/include/llvm/CodeGen/MachineFunctionPass.h Mon Jul 2 09:53:37 2007 @@ -26,7 +26,7 @@ struct MachineFunctionPass : public FunctionPass { - MachineFunctionPass(intptr_t ID) : FunctionPass(ID) {} + explicit MachineFunctionPass(intptr_t ID) : FunctionPass(ID) {} /// runOnMachineFunction - This method must be overloaded to perform the /// desired machine code transformation or analysis. Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp?rev=37839&r1=37838&r2=37839&view=diff ============================================================================== --- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp (original) +++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Mon Jul 2 09:53:37 2007 @@ -38,7 +38,7 @@ struct VISIBILITY_HIDDEN NoAA : public ImmutablePass, public AliasAnalysis { static char ID; // Class identification, replacement for typeinfo NoAA() : ImmutablePass((intptr_t)&ID) {} - NoAA(intptr_t PID) : ImmutablePass(PID) { } + explicit NoAA(intptr_t PID) : ImmutablePass(PID) { } virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<TargetData>(); Modified: llvm/trunk/lib/Analysis/CFGPrinter.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CFGPrinter.cpp?rev=37839&r1=37838&r2=37839&view=diff ============================================================================== --- llvm/trunk/lib/Analysis/CFGPrinter.cpp (original) +++ llvm/trunk/lib/Analysis/CFGPrinter.cpp Mon Jul 2 09:53:37 2007 @@ -135,7 +135,7 @@ struct VISIBILITY_HIDDEN CFGPrinter : public FunctionPass { static char ID; // Pass identification, replacement for typeid CFGPrinter() : FunctionPass((intptr_t)&ID) {} - CFGPrinter(intptr_t pid) : FunctionPass(pid) {} + explicit CFGPrinter(intptr_t pid) : FunctionPass(pid) {} virtual bool runOnFunction(Function &F) { std::string Filename = "cfg." + F.getName() + ".dot"; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits