summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/index-templates.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-02-02 15:28:46 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-02-02 15:28:46 +0000
commit3a7cc81d52f9b7a6e7e94c9efcd1113f1aeb8c9a (patch)
treebb87867caf62a9f09f5be714b37c5d7815cd2168 /clang/test/Index/index-templates.cpp
parent59999a32b3367f3187845b66e91cdf35c3d1c596 (diff)
downloadbcm5719-llvm-3a7cc81d52f9b7a6e7e94c9efcd1113f1aeb8c9a.tar.gz
bcm5719-llvm-3a7cc81d52f9b7a6e7e94c9efcd1113f1aeb8c9a.zip
Report a correct end location for nameless parameters.
Ranges before: void test(void (*)(int), int, float); ~~~~~~~~~~~~~ ~~~~ ~~~~~~ Ranges after: void test(void (*)(int), int, float); ~~~~~~~~~~~~~ ~~~ ~~~~~ This does not change the actual location of the ParmVarDecl, it still points to the location where the name would be. PR17970. llvm-svn: 200640
Diffstat (limited to 'clang/test/Index/index-templates.cpp')
-rw-r--r--clang/test/Index/index-templates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/index-templates.cpp b/clang/test/Index/index-templates.cpp
index 05068df5c59..5fcb652cea1 100644
--- a/clang/test/Index/index-templates.cpp
+++ b/clang/test/Index/index-templates.cpp
@@ -143,7 +143,7 @@ struct SuperPair : Pair<int, int>, Pair<T, U> { };
// CHECK-LOAD: index-templates.cpp:40:8: ClassTemplate=storage:40:8 (Definition) Extent=[39:1 - 40:19]
// CHECK-LOAD: index-templates.cpp:39:45: TemplateTemplateParameter=DataStructure:39:45 (Definition) Extent=[39:10 - 39:66]
// CHECK-LOAD: index-templates.cpp:39:19: TemplateTypeParameter=:39:19 (Definition) Extent=[39:19 - 39:27]
-// CHECK-LOAD: index-templates.cpp:39:37: NonTypeTemplateParameter=:39:37 (Definition) Extent=[39:29 - 39:38]
+// CHECK-LOAD: index-templates.cpp:39:37: NonTypeTemplateParameter=:39:37 (Definition) Extent=[39:29 - 39:37]
// CHECK-LOAD: index-templates.cpp:39:61: TemplateRef=array:37:8 Extent=[39:61 - 39:66]
// CHECK-LOAD: index-templates.cpp:42:18: TypedefDecl=Unsigned:42:18 (Definition) Extent=[42:1 - 42:26]
// CHECK-LOAD: index-templates.cpp:45:8: ClassTemplate=value_c:45:8 Extent=[44:1 - 45:15]
OpenPOWER on IntegriCloud