Skip to content
  1. Oct 11, 2007
  2. Oct 10, 2007
    • Chris Lattner's avatar
      clang -E should not print tokens from the predefines buffer. · 3ff2e697
      Chris Lattner authored
      llvm-svn: 42838
      3ff2e697
    • Steve Naroff's avatar
      · 8308f60d
      Steve Naroff authored
      Fix a latent bug in MinimalActions (created by a recent name change).
      
      llvm-svn: 42829
      8308f60d
    • Chris Lattner's avatar
      Make a significant change to invert the control flow handling · 1f1b0dbc
      Chris Lattner authored
      predefined macros.  Previously, these were handled by the driver,
      now they are handled by the preprocessor.
      
      Some fallout of this:
      
      1. Instead of preprocessing two buffers (the predefines, then the 
         main source file)  we now start preprocessing the main source 
         file and inject the predefines as a "psuedo #include" from the
         main source file.
      2. #1 allows us to nuke the Lexer::IsMainFile flag and simplify
         Preprocessor::isInPrimaryFile.
      3. The driver doesn't have to know about standard #defines, the
         preprocessor knows, which is nice for people wanting to define
         their own drivers.
      4. This allows us to put normal tokens in the predefine buffer,
         for example a definition for __builtin_va_list that is 
         target-specific, and a typedef for id in objc.
      
      llvm-svn: 42818
      1f1b0dbc
  3. Oct 09, 2007
  4. Oct 08, 2007
  5. Oct 07, 2007
  6. Oct 06, 2007
  7. Oct 01, 2007
  8. Sep 26, 2007
  9. Sep 25, 2007
    • Ted Kremenek's avatar
      Fixed broken English in comment. · 9c3fe8d2
      Ted Kremenek authored
      llvm-svn: 42317
      9c3fe8d2
    • Ted Kremenek's avatar
      Added "CheckASTConsumer", a function that generalizes · 558be366
      Ted Kremenek authored
      "CheckDiagnostics" (used for -parse-ast-check) to check the
      diagnostics of any ASTConsumer.
      
      Reimplemented CheckDiagnostics to use CheckASTConsumer instead.
      
      Added driver option -warn-dead-stores-check, which checks the
      diagnostics generated by the DeadStores checker.  This is implemented
      using CheckASTConsumer.111
      
      llvm-svn: 42310
      558be366
    • Ted Kremenek's avatar
      Changed command line options "-check-dead-stores" and · 2826f6e6
      Ted Kremenek authored
      "-check-uninit-values" to "-warn-dead-stores" and
      "-warn-uninit-values"
      
      llvm-svn: 42307
      2826f6e6
    • Ted Kremenek's avatar
      Further refactored DataflowSolver. Now most code for the solver is shared · ad8bce02
      Ted Kremenek authored
      between forward and backward analyses, with trait classes being used
      to implement the key differences in operations/functionality.
      
      Converted the LiveVariables analysis to use the generic DataflowSolver.  This,
      along with removing some extra functionality that was not needed, reduced
      the code for LiveVariables by over half.
      
      Modified Driver code to handle the updated interface to LiveVariables.
      
      Modified the DeadStores checker to handle the update interface to
      LiveVariables.
      
      Updated DataflowValues (generic ADT to store dataflow values) to also
      store values for blocks.  This is used by DeadStores.  Updated some comments.
      
      llvm-svn: 42293
      ad8bce02
  10. Sep 19, 2007
  11. Sep 17, 2007
  12. Sep 16, 2007
  13. Sep 15, 2007
    • Steve Naroff's avatar
      · 30d242c9
      Steve Naroff authored
      Start converting Action methods from Parse-prefix to ActOn-prefix.
      
      The previous naming scheme was confusing, since it resulted in both the Parser and Action modules having methods with the same name. In addition, the Action module never does any parsing...
      
      llvm-svn: 41986
      30d242c9
  14. Sep 13, 2007
    • Steve Naroff's avatar
      · 9def2b15
      Steve Naroff authored
      Phase 2 of making the Decl class more lightweight...
      
      Move Identifier/Loc instance variables (and associated getters/setters) down from Decl to ScopedDecl/FieldDecl.
      
      Objc AST's can now inherit from Decl without getting instance variables and types that are C specific. For now, I am keeping NextDeclarator, since I believe it may be useful to ObjC. If not, it can be moved later.
      
      llvm-svn: 41934
      9def2b15
    • Chris Lattner's avatar
      make the sourcemgr available through ASTContext. · 5a5b35c0
      Chris Lattner authored
      llvm-svn: 41906
      5a5b35c0
  15. Sep 12, 2007
    • Steve Naroff's avatar
      · 6109140b
      Steve Naroff authored
      Fix the following bug submitted by Ted Kremenek:
      
      void func() {
      int xx = xx; // incorrectly diagnosed 'xx' as an undeclared identifier.
      }
      
      This smallish bug resulted in a largish fix. Here are some highlights:
      
      - Needed to make sure ParseDeclarator is called *before* parsing any
      initializer. Removed the "Init" argument to ParseDeclarator.
      - Added AddInitializerToDecl() to the Action & Sema classes.
      In Sema, this hook is responsible for validating the initializer and
      installing it into the respective decl.
      - Moved several semantic checks from ParseDeclarator() to 
      FinalizeDeclaratorGroup(). Previously, this hook was only responsible for 
      reversing a list. Now it plays a much larger semantic role. 
      
      All of the above changes ended up simplifying ParseDeclarator(), which
      is goodness...
      
      llvm-svn: 41877
      6109140b
  16. Sep 10, 2007
  17. Sep 08, 2007
  18. Sep 07, 2007
Loading