]> granicus.if.org Git - clang/commitdiff
Document some serious badness in our evaluation of the type traits: we need to be...
authorDouglas Gregor <dgregor@apple.com>
Thu, 27 Jan 2011 20:35:44 +0000 (20:35 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 27 Jan 2011 20:35:44 +0000 (20:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124428 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprCXX.cpp

index df4103a9a1b12ff921c26c432c85575654b406d5..ca104ef5814bbe00be2e06c4c90f57589b9734f5 100644 (file)
@@ -2219,6 +2219,8 @@ ExprResult Sema::ActOnUnaryTypeTrait(UnaryTypeTrait UTT,
 
 static bool EvaluateUnaryTypeTrait(Sema &Self, UnaryTypeTrait UTT, QualType T,
                                    SourceLocation KeyLoc) {
+  // FIXME: For many of these traits, we need a complete type before we can 
+  // check these properties.
   assert(!T->isDependentType() &&
          "Cannot evaluate traits for dependent types.");
   ASTContext &C = Self.Context;