Skip to content
  1. Nov 24, 2009
  2. Nov 23, 2009
  3. Nov 22, 2009
  4. Nov 21, 2009
  5. Nov 20, 2009
  6. Nov 19, 2009
  7. Nov 17, 2009
  8. Nov 16, 2009
    • Douglas Gregor's avatar
      First part of changes to eliminate problems with cv-qualifiers and · 1b8fe5b7
      Douglas Gregor authored
      sugared types. The basic problem is that our qualifier accessors
      (getQualifiers, getCVRQualifiers, isConstQualified, etc.) only look at
      the current QualType and not at any qualifiers that come from sugared
      types, meaning that we won't see these qualifiers through, e.g.,
      typedefs:
      
        typedef const int CInt;
        typedef CInt Self;
      
      Self.isConstQualified() currently returns false!
      
      Various bugs (e.g., PR5383) have cropped up all over the front end due
      to such problems. I'm addressing this problem by splitting each
      qualifier accessor into two versions: 
      
        - the "local" version only returns qualifiers on this particular
          QualType instance
        - the "normal" version that will eventually combine qualifiers from this
          QualType instance with the qualifiers on the canonical type to
          produce the full set of qualifiers.
      
      This commit adds the local versions and switches a few callers from
      the "normal" version (e.g., isConstQualified) over to the "local"
      version (e.g., isLocalConstQualified) when that is the right thing to
      do, e.g., because we're printing or serializing the qualifiers. Also,
      switch a bunch of
        
        Context.getCanonicalType(T1).getUnqualifiedType() == Context.getCanonicalType(T2).getQualifiedType()
      
      expressions over to 
      
        Context.hasSameUnqualifiedType(T1, T2)
      
      llvm-svn: 88969
      1b8fe5b7
    • Zhongxing Xu's avatar
      * Do the same thing to the basicstore as in r84163. · 731f4626
      Zhongxing Xu authored
      * Add a load type to GRExprEngine::EvalLoad().
      * When retrieve from 'theValue' of OSAtomic funcitions, use the type of the 
        region instead of the argument expression as the load type.
      * Then we can convert CastRetrievedSVal to a pure assertion. In the future
        we can let all Retrieve() methods simply return SVal.
      
      llvm-svn: 88888
      731f4626
    • Zhongxing Xu's avatar
      Remove an unused parameter. · 223f5119
      Zhongxing Xu authored
      llvm-svn: 88882
      223f5119
  9. Nov 14, 2009
  10. Nov 13, 2009
Loading