[cfe-commits] TranslationUnit check position support

章磊 ioripolo at gmail.com
Tue May 3 23:00:56 PDT 2011


Hi clang,

I fixed upper issues, and here is the new patch.

2011/5/4 Ted Kremenek <kremenek at apple.com>

> One other thing I noticed in the patch:
>
>  (const Decl* D, AnalysisManager &mgr, ...)
>
> why use a generic Decl*?  Since it is always going to be a
> TranslationUnitDecl*, we should pass the most specific type.
>
> On May 3, 2011, at 10:50 AM, Argyrios Kyrtzidis wrote:
>
> > A more appropriate name is checkEndOfTranslationUnit (a checker can
> already check the TranslationUnitDecl with checkASTDecl which is called at
> the beginning).
> >
> > So please change runCheckersOnTranslationUnit ->
> runCheckersOnEndOfTranslationUnit and likewise for the rest of the patch
> ("class TranslationUnit" -> "class EndOfTranslationUnit", etc.).
> >
> > Otherwise looks good!
> >
> > On May 2, 2011, at 8:33 PM, 章磊 wrote:
> >
> >> Hi Clang,
> >>
> >> This patch add a new check position checkTranslationUnit for a check
> after all the decls in the translation unit analyzed, then we can do some
> statistical analysis in this check position.
> >>
> >> This patch is preparation for statistical UncheckedRenturn checker.
> >> I'll appreciate it if there are any advice about this patch.
> >>
> >> --
> >> Best regards!
> >>
> >> Lei Zhang
> >>
> <checkTranslationUnit.patch>_______________________________________________
> >> cfe-commits mailing list
> >> cfe-commits at cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> >
> >
> > _______________________________________________
> > cfe-commits mailing list
> > cfe-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>


-- 
Best regards!

Lei Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110504/6997d485/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checkTranslationUnit.patch
Type: text/x-patch
Size: 5147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110504/6997d485/attachment.bin>


More information about the cfe-commits mailing list