Skip to content
  1. Dec 11, 2008
    • Douglas Gregor's avatar
      Unifies the name-lookup mechanisms used in various parts of the AST · 91f84216
      Douglas Gregor authored
      and separates lexical name lookup from qualified name lookup. In
      particular:
        * Make DeclContext the central data structure for storing and
          looking up declarations within existing declarations, e.g., members
          of structs/unions/classes, enumerators in C++0x enums, members of
          C++ namespaces, and (later) members of Objective-C
          interfaces/implementations. DeclContext uses a lazily-constructed
          data structure optimized for fast lookup (array for small contexts,
          hash table for larger contexts). 
      
        * Implement C++ qualified name lookup in terms of lookup into
          DeclContext.
      
        * Implement C++ unqualified name lookup in terms of
          qualified+unqualified name lookup (since unqualified lookup is not
          purely lexical in C++!)
      
        * Limit the use of the chains of declarations stored in
          IdentifierInfo to those names declared lexically.
      
        * Eliminate CXXFieldDecl, collapsing its behavior into
          FieldDecl. (FieldDecl is now a ScopedDecl).
      
        * Make RecordDecl into a DeclContext and eliminates its
          Members/NumMembers fields (since one can just iterate through the
          DeclContext to get the fields).
      
      llvm-svn: 60878
      91f84216
    • Zhongxing Xu's avatar
      Identify AnonPointeeRegion by the symbol that is concretized. · 26776c27
      Zhongxing Xu authored
      llvm-svn: 60870
      26776c27
    • Zhongxing Xu's avatar
      AnonPointeeRegions are now identified by the MemRegion of the pointer pointing · 02fe7129
      Zhongxing Xu authored
      to them.
      
      llvm-svn: 60868
      02fe7129
    • Ted Kremenek's avatar
      Updated checker build. · 0bc1320d
      Ted Kremenek authored
      llvm-svn: 60864
      0bc1320d
    • Anders Carlsson's avatar
      Add another complex promotion test. · 591b2224
      Anders Carlsson authored
      llvm-svn: 60863
      591b2224
    • Anders Carlsson's avatar
      Make sure to promote expressions of the form (floating point + complex... · b05961c7
      Anders Carlsson authored
      Make sure to promote expressions of the form (floating point + complex integer) correctly, to (complex floating point + complex floating point)
      
      llvm-svn: 60862
      b05961c7
    • Ted Kremenek's avatar
      PreprocessorLexer (and subclasses): · 8e1f05fc
      Ted Kremenek authored
      - Added virtual method 'getSourceLocation()' (no arguments) that gets the location of the next "observable" location (e.g., next character, next token).
      PPLexerChange.cpp:
      - Implemented FIXME by using PreprocessorLexer::getSourceLocation() to get the location in the file we are returning to after lexing a #included file.  This appears to be slightly faster than having the branch (i.e., 'if(CurLexer)').  It's also not a really hot part of the Preprocessor.
      
      llvm-svn: 60860
      8e1f05fc
    • Douglas Gregor's avatar
      Added a warning when referencing an if's condition variable in the · 85970ca8
      Douglas Gregor authored
      "else" clause, e.g.,
      
        if (int X = foo()) {
        } else {
          if (X) { // warning: X is always zero in this context
          }
        }
      
      Fixes rdar://6425550 and lets me think about something other than
      DeclContext.
      
      llvm-svn: 60858
      85970ca8
  2. Dec 10, 2008
  3. Dec 09, 2008
Loading