1. Jul 29, 2010
  2. Jul 28, 2010
    • Craig Silverstein's avatar
      Add proper callbacks for DeclStmt -- we weren't recursing on · 118c61c2
      Craig Silverstein authored
              the decls.  This was just an oversight before; one we didn't
              catch because lots of information in a DeclStmt was also being
              traversed (redundantly) elsewhere.
      
              Once DeclStmt was cleaned up, I could clean up some of the
              redundant traversals found elswhere as well -- in particular,
              traversing the declarations inside a function as part of the
              function callback (instead of as part of the CompoundExpr
              callback that constitutes the body of the function).  The old
              way was really weird, and led to some parts of local variable
              declarations (but not all) being visited twice.  That is now
              resolved.  I also was able to simplify the traversers for
              IfStmt/WhileStmt/etc, which used to have redundant calls to
              work around the fact DeclStmt wasn't working properly.
      
              While in the area, I fixed up a few more recursion-ordering
              issues.  I try to hold to the principle that
              RecursiveASTVisitor visits objects in the source code in the
              same order they're typed.  So the return-type of a variable
              comes before the variable-name.  This still isn't perfect, but
              we're closer to that.
      
      	Reviewed by chandlerc and wan.
      
      llvm-svn: 109590
      118c61c2
    • Gabor Greif's avatar
      simplify · f0084e13
      Gabor Greif authored
      llvm-svn: 109589
      f0084e13
    • Daniel Dunbar's avatar
      Rename -Wlogical-bitwise-confusion to -Wconstant-logical-operand, which strikes · 61854b19
      Daniel Dunbar authored
      me as more consistent and less pejorative.
      
      llvm-svn: 109588
      61854b19