]> granicus.if.org Git - clang/commitdiff
Remove one I just added, add a more focused test for why the current code is correct.
authorNico Weber <nicolasweber@gmx.de>
Mon, 22 Nov 2010 13:12:28 +0000 (13:12 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 22 Nov 2010 13:12:28 +0000 (13:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119969 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseExprCXX.cpp
test/SemaCXX/sourceranges.cpp

index e027e28e9adfbba8fa2d82de2b13aa91f29cc242..1d09fe2a1afbe0a06e69210b1725a883901ece63 100644 (file)
@@ -912,8 +912,6 @@ void Parser::ParseCXXSimpleTypeSpecifier(DeclSpec &DS) {
 
   // type-name
   case tok::annot_typename: {
-    // FIXME: This should probably pass getAnnotationEndLoc() instead of Loc,
-    // but that breaks test/Index/recursive-cxx-member-calls.cpp.
     DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID,
                        getTypeAnnotation(Tok));
     
index c3ce279904d5673c3b232386dafd0731adf38491..602d76baa9db496dbd49bc6beab64ca82be7cc43 100644 (file)
@@ -20,3 +20,8 @@ int main() {
   // CHECK: CXXNewExpr {{0x[0-9a-fA-F]+}} <col:19, col:28> 'foo::C *'
   P<foo::C> pr4 = new foo::C;
 }
+
+foo::A getName() {
+  // CHECK: CXXConstructExpr {{0x[0-9a-fA-F]+}} <col:10, col:17> 'foo::class A'
+  return foo::A();
+}