[cfe-commits] r119969 - in /cfe/trunk: lib/Parse/ParseExprCXX.cpp test/SemaCXX/sourceranges.cpp
Nico Weber
nicolasweber at gmx.de
Mon Nov 22 05:12:28 PST 2010
Author: nico
Date: Mon Nov 22 07:12:28 2010
New Revision: 119969
URL: http://llvm.org/viewvc/llvm-project?rev=119969&view=rev
Log:
Remove one I just added, add a more focused test for why the current code is correct.
Modified:
cfe/trunk/lib/Parse/ParseExprCXX.cpp
cfe/trunk/test/SemaCXX/sourceranges.cpp
Modified: cfe/trunk/lib/Parse/ParseExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExprCXX.cpp?rev=119969&r1=119968&r2=119969&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseExprCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseExprCXX.cpp Mon Nov 22 07:12:28 2010
@@ -912,8 +912,6 @@
// 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));
Modified: cfe/trunk/test/SemaCXX/sourceranges.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/sourceranges.cpp?rev=119969&r1=119968&r2=119969&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/sourceranges.cpp (original)
+++ cfe/trunk/test/SemaCXX/sourceranges.cpp Mon Nov 22 07:12:28 2010
@@ -20,3 +20,8 @@
// 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();
+}
More information about the cfe-commits
mailing list