Skip to content
  1. Dec 02, 2009
    • Daniel Dunbar's avatar
      Add ASTUnit::LoadFromCommandLine, which creates an ASTUnit out of a list of · 55a17b66
      Daniel Dunbar authored
      (clang/driver) command line arguments (including the source file).
       - The arguments are expected to include the source file.
      
       - The idea is that even though this is a somewhat odd API, its the form which
         many tools can most easily use (for example, by interposing with the compiler).
      
      Also, switch index-test's -ast-from-source to use this entry point, and provide
      a -arg command line argument which can be used to test that the command line
      arguments are handled correctly.
      
      llvm-svn: 90288
      55a17b66
    • Daniel Dunbar's avatar
      Driver: Add Command::Creator member variable, which tracks the tool that was · 120c77e4
      Daniel Dunbar authored
      used to create a particular command.
      
      llvm-svn: 90287
      120c77e4
    • Fariborz Jahanian's avatar
      Added an assert. · 037bcb5b
      Fariborz Jahanian authored
      llvm-svn: 90285
      037bcb5b
    • Fariborz Jahanian's avatar
      Fix a code gen. crash synthesizing a destructor. · 4d9ab43f
      Fariborz Jahanian authored
      Fixes pr5660.
      
      llvm-svn: 90283
      4d9ab43f
    • Daniel Dunbar's avatar
      In SourceManager::isBeforeInTranslationUnit, if we are trying to compare two... · 465f4c48
      Daniel Dunbar authored
      In SourceManager::isBeforeInTranslationUnit, if we are trying to compare two source locations with no common ancestor in the include stack, determine order by assuming memory buffers preceed files, and then that FileIDs are created in order.
      
      The later assumption is patently false, but this was already broken -- this situation is conceptually impossible, my feeling is we should fix SourceManager and friends to make it impossible in practice as well. However, we need to fix PR5662 and perhaps some other things involving memory buffers first. In the short term I'm pretty sure this is reliable.
      
      Chris, Argiris, is this going to break anything that wasn't already broken?
      
      llvm-svn: 90280
      465f4c48
  2. Dec 01, 2009
  3. Nov 30, 2009
Loading