forked from OSchip/llvm-project
[index] Use ',' to separate symbol roles when printing.
llvm-svn: 262205
This commit is contained in:
parent
8d8f919cf5
commit
d97ec18fe4
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue