[index] Use ',' to separate symbol roles when printing.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 29 Feb 2016 07:55:51 +0000 (07:55 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 29 Feb 2016 07:55:51 +0000 (07:55 +0000)
llvm-svn: 262205

clang/lib/Index/IndexSymbol.cpp
clang/test/Index/Core/index-source.cpp
clang/test/Index/Core/index-source.m

index 010ccd4..96da7a7 100644 (file)
@@ -214,7 +214,7 @@ void index::printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS) {
   bool VisitedOnce = false;
   applyForEachSymbolRole(Roles, [&](SymbolRole Role) {
     if (VisitedOnce)
-      OS << '/';
+      OS << ',';
     else
       VisitedOnce = true;
     switch (Role) {
index 7544646..406f70f 100644 (file)
@@ -4,6 +4,6 @@ template <typename TemplArg>
 class TemplCls {
 // CHECK: [[@LINE-1]]:7 | c++-class/C++ | TemplCls | c:@ST>1#T@TemplCls | <no-cgname> | Def | rel: 0
   TemplCls(int x);
-  // CHECK: [[@LINE-1]]:3 | constructor/C++ | TemplCls | c:@ST>1#T@TemplCls@F@TemplCls#I# | <no-cgname> | Decl/RelChild | rel: 1
+  // CHECK: [[@LINE-1]]:3 | constructor/C++ | TemplCls | c:@ST>1#T@TemplCls@F@TemplCls#I# | <no-cgname> | Decl,RelChild | rel: 1
   // CHECK-NEXT: RelChild | TemplCls | c:@ST>1#T@TemplCls
 };
index 0fdae7a..6bff76e 100644 (file)
@@ -3,6 +3,6 @@
 @interface Base
 // CHECK: [[@LINE-1]]:12 | objc-class/ObjC | Base | c:objc(cs)Base | _OBJC_CLASS_$_Base | Decl | rel: 0
 -(void)meth;
-// CHECK: [[@LINE-1]]:1 | objc-instance-method/ObjC | meth | c:objc(cs)Base(im)meth | -[Base meth] | Decl/Dyn/RelChild | rel: 1
+// CHECK: [[@LINE-1]]:1 | objc-instance-method/ObjC | meth | c:objc(cs)Base(im)meth | -[Base meth] | Decl,Dyn,RelChild | rel: 1
 // CHECK-NEXT: RelChild | Base | c:objc(cs)Base
 @end