@@ -47,8 +47,7 @@ public static bool SkipProperty(Property property, bool skipBaseCheck = false)
47
47
return true ;
48
48
}
49
49
50
- if ( property . Name is "beginLoc" or "endLoc" &&
51
- @class . Name != "Stmt" )
50
+ if ( property . Name is "beginLoc" or "endLoc" && @class . Name != "Stmt" )
52
51
return true ;
53
52
54
53
switch ( property . Name )
@@ -309,7 +308,7 @@ public static string GetQualifiedName(Declaration decl,
309
308
else if ( qualifiedName . Contains ( "Semantics" ) )
310
309
qualifiedName = qualifiedName . Replace (
311
310
typePrinter is CppTypePrinter ? "llvm::APFloatBase::Semantics" : "llvm.APFloatBase.Semantics"
312
- , "FloatSemantics" ) ;
311
+ , "FloatSemantics" ) ;
313
312
314
313
return qualifiedName ;
315
314
}
@@ -319,11 +318,13 @@ public static string GetQualifiedName(Declaration decl) =>
319
318
320
319
private static string CleanClangNamespaceFromName ( string qualifiedName )
321
320
{
322
- qualifiedName = qualifiedName . StartsWith ( "clang::" ) ?
323
- qualifiedName . Substring ( "clang::" . Length ) : qualifiedName ;
321
+ qualifiedName = qualifiedName . StartsWith ( "clang::" )
322
+ ? qualifiedName . Substring ( "clang::" . Length )
323
+ : qualifiedName ;
324
324
325
- qualifiedName = qualifiedName . StartsWith ( "clang." ) ?
326
- qualifiedName . Substring ( "clang." . Length ) : qualifiedName ;
325
+ qualifiedName = qualifiedName . StartsWith ( "clang." )
326
+ ? qualifiedName . Substring ( "clang." . Length )
327
+ : qualifiedName ;
327
328
328
329
return qualifiedName ;
329
330
}
@@ -392,7 +393,8 @@ public static string GetDeclTypeName(AST.Type type,
392
393
393
394
if ( typeResult . Type . Contains ( "MSGuidDecl" ) )
394
395
return typePrinter is CppTypePrinter
395
- ? "std::string" : "string" ;
396
+ ? "std::string"
397
+ : "string" ;
396
398
397
399
var typeName = typeResult . ToString ( ) ;
398
400
typeName = CleanClangNamespaceFromName ( typeName ) ;
@@ -436,8 +438,7 @@ public static string GetDeclTypeName(AST.Type type,
436
438
className = "Declaration" ;
437
439
438
440
if ( className != null )
439
- return ( typePrinter is CppTypePrinter ) ?
440
- $ "{ className } *" : className ;
441
+ return ( typePrinter is CppTypePrinter ) ? $ "{ className } *" : className ;
441
442
442
443
return typeName ;
443
444
}
@@ -525,8 +526,7 @@ public static List<Class> GetBaseClasses(Class @class)
525
526
while ( currentClass != null )
526
527
{
527
528
baseClasses . Add ( currentClass ) ;
528
- currentClass = currentClass . HasBaseClass ?
529
- currentClass . BaseClass : null ;
529
+ currentClass = currentClass . HasBaseClass ? currentClass . BaseClass : null ;
530
530
}
531
531
532
532
baseClasses . Reverse ( ) ;
0 commit comments