summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/cxx11-lambdas.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-12-08 08:48:33 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-12-08 08:48:33 +0000
commitf66cef75757ae3c35ad1ce18c6efe22b82a1903e (patch)
treee613abb7b944a1c5c9d1314d5f220f42ee3c792d /clang/test/Index/cxx11-lambdas.cpp
parent0e387dc33096346c5aa60c341f38784fc0ddcbb7 (diff)
downloadbcm5719-llvm-f66cef75757ae3c35ad1ce18c6efe22b82a1903e.tar.gz
bcm5719-llvm-f66cef75757ae3c35ad1ce18c6efe22b82a1903e.zip
[libclang] Use same USR encoding for 'class' as 'struct'.
'class' and 'struct' can be used interchangebly for forward references. Use the same encoding otherwise we may get into a weird situation where the USR for the same declaration is different based on whether the definition of the tag reference is visible or not. llvm-svn: 223632
Diffstat (limited to 'clang/test/Index/cxx11-lambdas.cpp')
-rw-r--r--clang/test/Index/cxx11-lambdas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/cxx11-lambdas.cpp b/clang/test/Index/cxx11-lambdas.cpp
index afb540a84d5..d0ee908059f 100644
--- a/clang/test/Index/cxx11-lambdas.cpp
+++ b/clang/test/Index/cxx11-lambdas.cpp
@@ -30,4 +30,4 @@ struct X {
// CHECK-INDEX: [indexEntityReference]: kind: typedef | name: Integer | USR: c:cxx11-lambdas.cpp@T@Integer | lang: C | cursor: TypeRef=Integer:3:13 | loc: 7:38
// CHECK-INDEX: [indexEntityReference]: kind: variable | name: localA | USR: c:cxx11-lambdas.cpp@100@S@X@F@f#@localA | lang: C | cursor: DeclRefExpr=localA:6:9 | loc: 8:14
// CHECK-INDEX: [indexEntityReference]: kind: variable | name: localB | USR: c:cxx11-lambdas.cpp@100@S@X@F@f#@localB | lang: C | cursor: DeclRefExpr=localB:6:17 | loc: 8:23
-// CHECK-INDEX: [indexEntityReference]: kind: variable | name: x | USR: c:cxx11-lambdas.cpp@157@S@X@F@f#@Ca@F@operator()#I#1@x | lang: C | cursor: DeclRefExpr=x:7:46 | loc: 8:32
+// CHECK-INDEX: [indexEntityReference]: kind: variable | name: x | USR: c:cxx11-lambdas.cpp@157@S@X@F@f#@Sa@F@operator()#I#1@x | lang: C | cursor: DeclRefExpr=x:7:46 | loc: 8:32
OpenPOWER on IntegriCloud