Skip to content
  1. Sep 06, 2007
    • Ted Kremenek's avatar
      LiveVariables: · 3f8ed265
      Ted Kremenek authored
       - Finished 99% of analysis logic.  Probably a few bugs.
       - Added querying functions to query liveness.
       - Added better pretty printing of liveness.
       - Added better bookkeeping of per-variable liveness information.
       - Added LiveVariablesAuditor interface, which allows "lazy" querying
         of intra-basic block liveness information.
      
      Driver:
       - Minor cleanups involved in dumping liveness information.
      
      llvm-svn: 41753
      3f8ed265
    • Steve Naroff's avatar
      · 09bf815f
      Steve Naroff authored
      The goal of this commit is to get just enough Sema support to recognize Objective-C classes
      as types. That said, the AST nodes ObjcInterfaceDecl, ObjcInterfaceType, and ObjcClassDecl are *very*
      preliminary.
      
      The good news is we no longer need -parse-noop (aka MinimalActions) to parse cocoa.m.
      
      llvm-svn: 41752
      09bf815f
    • Ted Kremenek's avatar
      Added LabelLoc to GotoStmt to record the source location of the label token · 73c18e03
      Ted Kremenek authored
      in the actual GotoStmt.
      
      Fixed bug where GotoStmt::getSourceRange incorrectly used the target LabelStmt
      to compute its extent.
      
      llvm-svn: 41745
      73c18e03
    • Ted Kremenek's avatar
      Added libClangAnalysis · e8050564
      Ted Kremenek authored
      llvm-svn: 41742
      e8050564
    • Ted Kremenek's avatar
      Added an early implementation of Live-Variables analysis built on · b56a9909
      Ted Kremenek authored
      source-level CFGs.  This code may change significantly in the near
      future as we explore different means to implement dataflow analyses.
      
      Added a driver option, -dump-live-variables, to view the output of
      live variable analysis.  This output is very ALPHA; it will be improved shortly.
      
      llvm-svn: 41737
      b56a9909
    • Chris Lattner's avatar
      remove the FATAL classifier. · 542a4400
      Chris Lattner authored
      llvm-svn: 41736
      542a4400
    • Chris Lattner's avatar
      remove sorry. · aa4b29c5
      Chris Lattner authored
      llvm-svn: 41734
      aa4b29c5
    • Steve Naroff's avatar
      · ca85d1dc
      Steve Naroff authored
      Start implementing Actions interface for ObjC classes, instance variables, and methods.
      
      Lot's of small changes to the parser.
      
      llvm-svn: 41732
      ca85d1dc
    • Fariborz Jahanian's avatar
      Patch for parsing objective-c style method calls. · bd25f7d4
      Fariborz Jahanian authored
      llvm-svn: 41731
      bd25f7d4
  2. Sep 05, 2007
  3. Sep 04, 2007
  4. Sep 03, 2007
  5. Sep 02, 2007
    • Steve Naroff's avatar
      · b03f5940
      Steve Naroff authored
      More progress on array initializers.
      
      - Added Expr::isConstantExpr().
      - Added type checking for InitListExpr elements.
      - Added diagnostic for trying to initialize a variable sized object.
      
      llvm-svn: 41674
      b03f5940
    • Steve Naroff's avatar
      More semantic analysis of initializers. · f33527a1
      Steve Naroff authored
      Added 2 errors and one warning, updated test case.
      
      llvm-svn: 41672
      f33527a1
    • Steve Naroff's avatar
      · 2fea1392
      Steve Naroff authored
      Start implementing semantic analysis for C initializers.
      
      Step 1: Start instantiating InitListExpr's.
      Step 2: Call newly added function Sema::CheckInitializer() from Sema::ParseDeclarator().
      Step 3: Give InitListExpr's a preliminary type.
      Step 4: Start emitting diagnostics for simple assignments.
      
      Note:
      
      As a result of step 1, the CodeGen/mandel.c test asserts "Unimplemented agg expr!", which is expected.
      
      As a result of step 4, the test below now fails. This isn't expected and needs to be investigated (it appears type checking for C++ references is flawed in some way).
      
      ******************** TEST 'Sema/cxx-references.cpp' FAILED! ********************
      Command: 
       clang -fsyntax-only Sema/cxx-references.cpp
      Output:
      Sema/cxx-references.cpp:8:12: warning: incompatible pointer types assigning 'int &*' to 'int *'
        int *p = &r;
                 ^~
      Sema/cxx-references.cpp:10:20: error: incompatible types assigning 'int (int)' to 'int (&)(int)'
        int (&rg)(int) = g;
                         ^
      Sema/cxx-references.cpp:13:18: error: incompatible types assigning 'int [3]' to 'int (&)[3]'
        int (&ra)[3] = a;
                       ^
      Sema/cxx-references.cpp:16:14: error: incompatible types assigning 'int *' to 'int *&'
        int *& P = Q;
                   ^
      4 diagnostics generated.
      ******************** TEST 'Sema/cxx-references.cpp' FAILED! ********************
      
      llvm-svn: 41671
      2fea1392
  6. Sep 01, 2007
Loading