Skip to content
  1. Jan 15, 2009
  2. Jan 14, 2009
    • Douglas Gregor's avatar
      Refactor name lookup. · 34074326
      Douglas Gregor authored
      This change refactors and cleans up our handling of name lookup with
      LookupDecl. There are several aspects to this refactoring:
      
        - The criteria for name lookup is now encapsulated into the class
        LookupCriteria, which replaces the hideous set of boolean values
        that LookupDecl currently has.
      
        - The results of name lookup are returned in a new class
        LookupResult, which can lazily build OverloadedFunctionDecls for
        overloaded function sets (and, eventually, eliminate the need to
        allocate member for OverloadedFunctionDecls) and contains a
        placeholder for handling ambiguous name lookup (for C++).
      
        - The primary entry points for name lookup are now LookupName (for
          unqualified name lookup) and LookupQualifiedName (for qualified
          name lookup). There is also a convenience function
          LookupParsedName that handles qualified/unqualified name lookup
          when given a scope specifier. Together, these routines are meant
          to gradually replace the kludgy LookupDecl, but this won't happen
          until after we have base class lookup (which forces us to cope
          with ambiguities).
      
        - Documented the heck out of name lookup. Experimenting a little
          with using Doxygen's member groups to make some sense of the Sema
          class. Feedback welcome!
      
        - Fixes some lingering issues with name lookup for
        nested-name-specifiers, which now goes through
        LookupName/LookupQualifiedName. 
      
      llvm-svn: 62245
      34074326
    • Fariborz Jahanian's avatar
      Patch to keep clang honest that it does not yet support · f2a3120b
      Fariborz Jahanian authored
      explicit return type on block literals.
      
      llvm-svn: 62240
      f2a3120b
    • Douglas Gregor's avatar
      Introduce support for C++0x explicit conversion operators (N2437) · 5fb53972
      Douglas Gregor authored
      Small cleanup in the handling of user-defined conversions. 
      
      Also, implement an optimization when constructing a call. We avoid
      recomputing implicit conversion sequences and instead use those
      conversion sequences that we computed as part of overload resolution.
      
      llvm-svn: 62231
      5fb53972
    • Steve Naroff's avatar
      Fix a subtle bug in DeclContext::DestroyDecls(). · 5de9b58b
      Steve Naroff authored
      llvm-svn: 62205
      5de9b58b
    • Ted Kremenek's avatar
      FunctionDecl::setParams() now uses the allocator associated with ASTContext to... · 4ba36fcc
      Ted Kremenek authored
      FunctionDecl::setParams() now uses the allocator associated with ASTContext to allocate the array of ParmVarDecl*'s.
      
      llvm-svn: 62203
      4ba36fcc
    • Fariborz Jahanian's avatar
      Implemenent objective-c's NSObject attribute as a way of ddeclaraing c-type · 255c0958
      Fariborz Jahanian authored
      objects as an objective-c object.
      
      llvm-svn: 62197
      255c0958
    • Ted Kremenek's avatar
      PTH: · e9814186
      Ted Kremenek authored
      - Use canonical FileID when using getSpelling() caching.  This
        addresses some cache misses we were seeing with -fsyntax-only on
        Cocoa.h
      - Added Preprocessor::getPhysicalCharacterAt() utility method for
        clients to grab the first character at a specified sourcelocation.
        This uses the PTH spelling cache.
      - Modified Sema::ActOnNumericConstant() to use
        Preprocessor::getPhysicalCharacterAt() instead of
        SourceManager::getCharacterData() (to get PTH hits).
      
      These changes cause -fsyntax-only to not page in any sources from
      Cocoa.h.  We see a speedup of 27%.
      
      llvm-svn: 62193
      e9814186
    • Douglas Gregor's avatar
      Permitting typedefs without a name is a Microsoft/GNU extension · 2b136fe2
      Douglas Gregor authored
      llvm-svn: 62192
      2b136fe2
  3. Jan 13, 2009
  4. Jan 12, 2009
Loading