[cfe-commits] r90195 - /cfe/trunk/include/clang/Analysis/PathSensitive/BugType.h

Ted Kremenek kremenek at apple.com
Mon Nov 30 20:15:23 PST 2009


Nice!

On Nov 30, 2009, at 7:06 PM, Zhongxing Xu wrote:

> Author: zhongxingxu
> Date: Mon Nov 30 21:06:19 2009
> New Revision: 90195
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=90195&view=rev
> Log:
> Clean up BuiltinBug class.
> 
> Modified:
>    cfe/trunk/include/clang/Analysis/PathSensitive/BugType.h
> 
> Modified: cfe/trunk/include/clang/Analysis/PathSensitive/BugType.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/BugType.h?rev=90195&r1=90194&r2=90195&view=diff
> 
> ==============================================================================
> --- cfe/trunk/include/clang/Analysis/PathSensitive/BugType.h (original)
> +++ cfe/trunk/include/clang/Analysis/PathSensitive/BugType.h Mon Nov 30 21:06:19 2009
> @@ -60,33 +60,15 @@
> };
> 
> class BuiltinBug : public BugType {
> -  GRExprEngine *Eng;
> -protected:
>   const std::string desc;
> public:
>   BuiltinBug(const char *name, const char *description)
> -    : BugType(name, "Logic error"), Eng(0), desc(description) {}
> +    : BugType(name, "Logic error"), desc(description) {}
> 
>   BuiltinBug(const char *name)
> -    : BugType(name, "Logic error"), Eng(0), desc(name) {}
> +    : BugType(name, "Logic error"), desc(name) {}
> 
> -  BuiltinBug(GRExprEngine *eng, const char* n, const char* d)
> -    : BugType(n, "Logic error"), Eng(eng), desc(d) {}
> -
> -  BuiltinBug(GRExprEngine *eng, const char* n)
> -    : BugType(n, "Logic error"), Eng(eng), desc(n) {}
> -
>   llvm::StringRef getDescription() const { return desc; }
> -
> -  virtual void FlushReportsImpl(BugReporter& BR, GRExprEngine& Eng) {}
> -
> -  void FlushReports(BugReporter& BR) { FlushReportsImpl(BR, *Eng); }
> -
> -  virtual void registerInitialVisitors(BugReporterContext& BRC,
> -                                       const ExplodedNode* N,
> -                                       BuiltinBugReport *R) {}
> -
> -  template <typename ITER> void Emit(BugReporter& BR, ITER I, ITER E);
> };
> 
> } // end clang namespace
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits





More information about the cfe-commits mailing list