Skip to content
  1. Apr 05, 2011
    • 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
  2. Apr 04, 2011
  3. Apr 02, 2011
  4. Apr 01, 2011
    • Chandler Carruth's avatar
      Fix an error in TreeTransform where we failed to copy the TemplateName's · 3d7e3daa
      Chandler Carruth authored
      location into a TemplateSpecializationTypeLoc. These were found using
      a hand-written program to inspect every source location in
      TemplateSpecializationTypeLocs and Valgrind. I don't know of any way to
      test them in Clang's existing test suite sadly.
      
      Example code that triggers the ElaboratedType case:
        template <typename T> struct X1 {
          template <typename U> struct X1_1 {
            int x;
          };
        };
      
        template <typename T, typename U> struct X2 {
          typename X1<T>::template X1_1<U> B;
        };
      
        X2<char, int> x2;
      
      The other fix was simply spotted by inspection. I audited all constructions of
      [Dependent]TemplateSpecializationTypeLocs in TreeTransform.h, and the rest set
      the TemplateNameLoc properly.
      
      llvm-svn: 128702
      3d7e3daa
  5. Mar 31, 2011
  6. Mar 30, 2011
  7. Mar 29, 2011
  8. Mar 28, 2011
  9. Mar 27, 2011
  10. Mar 26, 2011
  11. Mar 25, 2011
  12. Mar 24, 2011
Loading