Skip to content
  1. May 05, 2011
  2. May 03, 2011
  3. May 02, 2011
  4. Apr 30, 2011
  5. Apr 28, 2011
  6. Apr 27, 2011
  7. Apr 26, 2011
  8. Apr 25, 2011
    • John Wiegley's avatar
      t/clang/expr-traits · f9f6584e
      John Wiegley authored
      Patch authored by David Abrahams.
      
      These two expression traits (__is_lvalue_expr, __is_rvalue_expr) are used for
      parsing code that employs certain features of the Embarcadero C++ compiler.
      
      llvm-svn: 130122
      f9f6584e
  9. Apr 23, 2011
  10. Apr 22, 2011
  11. Apr 19, 2011
  12. Apr 15, 2011
  13. Apr 12, 2011
  14. Apr 11, 2011
  15. Apr 10, 2011
  16. Apr 09, 2011
    • Lenny Maiorani's avatar
      strcat() and strncat() model additions to CStringChecker. · 467dbd5f
      Lenny Maiorani authored
      Validates inputs are not NULL, checks for overlapping strings, concatenates the strings checking for buffer overflow, sets the length of the destination string to the sum of the s1 length and the s2 length, binds the return value to the s1 value.
      
      llvm-svn: 129215
      467dbd5f
    • Ted Kremenek's avatar
      Start overhauling static analyzer support for C++ constructors. The inlining... · f603f3af
      Ted Kremenek authored
      Start overhauling static analyzer support for C++ constructors.  The inlining support isn't complete, and needs
      to be reworked to model CallEnter/CallExit (just like all other calls).  For now, treat constructors mostly
      like other function calls, making the analysis of C++ code just a little more useful.
      
      llvm-svn: 129166
      f603f3af
  17. Apr 07, 2011
    • John McCall's avatar
      Basic, untested implementation for an "unknown any" type requested by LLDB. · 31996343
      John McCall authored
      The idea is that you can create a VarDecl with an unknown type, or a
      FunctionDecl with an unknown return type, and it will still be valid to
      access that object as long as you explicitly cast it at every use.  I'm
      still going back and forth about how I want to test this effectively, but
      I wanted to go ahead and provide a skeletal implementation for the LLDB
      folks' benefit and because it also improves some diagnostic goodness for
      placeholder expressions.
      
      llvm-svn: 129065
      31996343
  18. Apr 06, 2011
  19. Apr 05, 2011
    • Lenny Maiorani's avatar
      Add security syntax checker for strcat() which causes the Static Analyzer to... · de909e49
      Lenny Maiorani authored
      Add security syntax checker for strcat() which causes the Static Analyzer to generate a warning any time the strcat() function is used with a note suggesting to use a function which provides bounded buffers. CWE-119.
      
      Also, brings the security syntax checker more inline with coding standards.
      
      llvm-svn: 128916
      de909e49
    • Ted Kremenek's avatar
      Fix PR 9626 (duplicated self-init warnings under -Wuninitialized) with... · 37881934
      Ted Kremenek authored
      Fix PR 9626 (duplicated self-init warnings under -Wuninitialized) with numerous CFG and UninitializedValues analysis changes:
      
      1) Change the CFG to include the DeclStmt for conditional variables, instead of using the condition itself as a faux DeclStmt.
      2) Update ExprEngine (the static analyzer) to understand (1), so not to regress.
      3) Update UninitializedValues.cpp to initialize all tracked variables to Uninitialized at the start of the function/method.
      4) Only use the SelfReferenceChecker (SemaDecl.cpp) on global variables, leaving the dataflow analysis to handle other cases.
      
      The combination of (1) and (3) allows the dataflow-based -Wuninitialized to find self-init problems when the initializer
      contained control-flow.
      
      llvm-svn: 128858
      37881934
Loading