0.7.0
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Namespaces | Functions
clanguml Namespace Reference

Namespaces

namespace  class_diagram
 
namespace  cli
 
namespace  common
 
namespace  config
 Configuration file related classes.
 
namespace  decorators
 
namespace  error
 
namespace  generators
 
namespace  include_diagram
 
namespace  logging
 
namespace  package_diagram
 
namespace  sequence_diagram
 
namespace  util
 
namespace  version
 

Functions

static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, ASTContext &Ctx, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, ASTContext &Ctx, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, ASTContext &Ctx, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, ASTContext &Ctx, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, ASTContext &Ctx, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, ASTContext &Ctx, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, ASTContext &Ctx, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, ASTContext &Ctx, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, const LangOptions &LangOpts, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, const LangOptions &LangOpts, NestedNameSpecifier *NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, const LangOptions &LangOpts, NestedNameSpecifier NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 
static bool printLoc (llvm::raw_ostream &OS, SourceLocation Loc, const SourceManager &SM, bool IncludeOffset)
 
static StringRef GetExternalSourceContainer (const NamedDecl *D)
 
static const ObjCCategoryDecl * getCategoryContext (const NamedDecl *D)
 
static void printQualifier (llvm::raw_ostream &Out, const LangOptions &LangOpts, NestedNameSpecifier NNS)
 
static void combineClassAndCategoryExtContainers (StringRef ClsSymDefinedIn, StringRef CatSymDefinedIn, raw_ostream &OS)
 

Function Documentation

◆ combineClassAndCategoryExtContainers() [1/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1039 of file USRGeneration.cpp.

1041 {
1042 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1043 return;
1044 if (CatSymDefinedIn.empty()) {
1045 OS << "@M@" << ClsSymDefinedIn << '@';
1046 return;
1047 }
1048 OS << "@CM@" << CatSymDefinedIn << '@';
1049 if (ClsSymDefinedIn != CatSymDefinedIn) {
1050 OS << ClsSymDefinedIn << '@';
1051 }
1052}

◆ combineClassAndCategoryExtContainers() [2/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1041 of file USRGeneration.cpp.

1043 {
1044 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1045 return;
1046 if (CatSymDefinedIn.empty()) {
1047 OS << "@M@" << ClsSymDefinedIn << '@';
1048 return;
1049 }
1050 OS << "@CM@" << CatSymDefinedIn << '@';
1051 if (ClsSymDefinedIn != CatSymDefinedIn) {
1052 OS << ClsSymDefinedIn << '@';
1053 }
1054}

◆ combineClassAndCategoryExtContainers() [3/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1042 of file USRGeneration.cpp.

1044 {
1045 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1046 return;
1047 if (CatSymDefinedIn.empty()) {
1048 OS << "@M@" << ClsSymDefinedIn << '@';
1049 return;
1050 }
1051 OS << "@CM@" << CatSymDefinedIn << '@';
1052 if (ClsSymDefinedIn != CatSymDefinedIn) {
1053 OS << ClsSymDefinedIn << '@';
1054 }
1055}

◆ combineClassAndCategoryExtContainers() [4/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1050 of file USRGeneration.cpp.

1052 {
1053 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1054 return;
1055 if (CatSymDefinedIn.empty()) {
1056 OS << "@M@" << ClsSymDefinedIn << '@';
1057 return;
1058 }
1059 OS << "@CM@" << CatSymDefinedIn << '@';
1060 if (ClsSymDefinedIn != CatSymDefinedIn) {
1061 OS << ClsSymDefinedIn << '@';
1062 }
1063}

◆ combineClassAndCategoryExtContainers() [5/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1096 of file USRGeneration.cpp.

1098 {
1099 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1100 return;
1101 if (CatSymDefinedIn.empty()) {
1102 OS << "@M@" << ClsSymDefinedIn << '@';
1103 return;
1104 }
1105 OS << "@CM@" << CatSymDefinedIn << '@';
1106 if (ClsSymDefinedIn != CatSymDefinedIn) {
1107 OS << ClsSymDefinedIn << '@';
1108 }
1109}

◆ combineClassAndCategoryExtContainers() [6/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1102 of file USRGeneration.cpp.

1104 {
1105 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1106 return;
1107 if (CatSymDefinedIn.empty()) {
1108 OS << "@M@" << ClsSymDefinedIn << '@';
1109 return;
1110 }
1111 OS << "@CM@" << CatSymDefinedIn << '@';
1112 if (ClsSymDefinedIn != CatSymDefinedIn) {
1113 OS << ClsSymDefinedIn << '@';
1114 }
1115}

◆ combineClassAndCategoryExtContainers() [7/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1129 of file USRGeneration.cpp.

1131 {
1132 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1133 return;
1134 if (CatSymDefinedIn.empty()) {
1135 OS << "@M@" << ClsSymDefinedIn << '@';
1136 return;
1137 }
1138 OS << "@CM@" << CatSymDefinedIn << '@';
1139 if (ClsSymDefinedIn != CatSymDefinedIn) {
1140 OS << ClsSymDefinedIn << '@';
1141 }
1142}

◆ combineClassAndCategoryExtContainers() [8/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1153 of file USRGeneration.cpp.

1155 {
1156 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1157 return;
1158 if (CatSymDefinedIn.empty()) {
1159 OS << "@M@" << ClsSymDefinedIn << '@';
1160 return;
1161 }
1162 OS << "@CM@" << CatSymDefinedIn << '@';
1163 if (ClsSymDefinedIn != CatSymDefinedIn) {
1164 OS << ClsSymDefinedIn << '@';
1165 }
1166}

◆ combineClassAndCategoryExtContainers() [9/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1288 of file USRGeneration.cpp.

1290{
1291 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1292 return;
1293 if (CatSymDefinedIn.empty()) {
1294 OS << "@M@" << ClsSymDefinedIn << '@';
1295 return;
1296 }
1297 OS << "@CM@" << CatSymDefinedIn << '@';
1298 if (ClsSymDefinedIn != CatSymDefinedIn) {
1299 OS << ClsSymDefinedIn << '@';
1300 }
1301}

◆ combineClassAndCategoryExtContainers() [10/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1144 of file USRGeneration.cpp.

1146 {
1147 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1148 return;
1149 if (CatSymDefinedIn.empty()) {
1150 OS << "@M@" << ClsSymDefinedIn << '@';
1151 return;
1152 }
1153 OS << "@CM@" << CatSymDefinedIn << '@';
1154 if (ClsSymDefinedIn != CatSymDefinedIn) {
1155 OS << ClsSymDefinedIn << '@';
1156 }
1157}

◆ combineClassAndCategoryExtContainers() [11/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1145 of file USRGeneration.cpp.

1147 {
1148 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1149 return;
1150 if (CatSymDefinedIn.empty()) {
1151 OS << "@M@" << ClsSymDefinedIn << '@';
1152 return;
1153 }
1154 OS << "@CM@" << CatSymDefinedIn << '@';
1155 if (ClsSymDefinedIn != CatSymDefinedIn) {
1156 OS << ClsSymDefinedIn << '@';
1157 }
1158}

◆ combineClassAndCategoryExtContainers() [12/12]

static void clanguml::combineClassAndCategoryExtContainers ( StringRef  ClsSymDefinedIn,
StringRef  CatSymDefinedIn,
raw_ostream &  OS 
)
static

Definition at line 1146 of file USRGeneration.cpp.

1148 {
1149 if (ClsSymDefinedIn.empty() && CatSymDefinedIn.empty())
1150 return;
1151 if (CatSymDefinedIn.empty()) {
1152 OS << "@M@" << ClsSymDefinedIn << '@';
1153 return;
1154 }
1155 OS << "@CM@" << CatSymDefinedIn << '@';
1156 if (ClsSymDefinedIn != CatSymDefinedIn) {
1157 OS << ClsSymDefinedIn << '@';
1158 }
1159}

◆ getCategoryContext() [1/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 388 of file USRGeneration.cpp.

388 {
389 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
390 return CD;
391 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
392 return ICD->getCategoryDecl();
393 return nullptr;
394}

◆ getCategoryContext() [2/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 388 of file USRGeneration.cpp.

388 {
389 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
390 return CD;
391 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
392 return ICD->getCategoryDecl();
393 return nullptr;
394}

◆ getCategoryContext() [3/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 388 of file USRGeneration.cpp.

388 {
389 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
390 return CD;
391 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
392 return ICD->getCategoryDecl();
393 return nullptr;
394}

◆ getCategoryContext() [4/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 389 of file USRGeneration.cpp.

389 {
390 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
391 return CD;
392 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
393 return ICD->getCategoryDecl();
394 return nullptr;
395}

◆ getCategoryContext() [5/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 392 of file USRGeneration.cpp.

392 {
393 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
394 return CD;
395 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
396 return ICD->getCategoryDecl();
397 return nullptr;
398}

◆ getCategoryContext() [6/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 397 of file USRGeneration.cpp.

397 {
398 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
399 return CD;
400 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
401 return ICD->getCategoryDecl();
402 return nullptr;
403}

◆ getCategoryContext() [7/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 399 of file USRGeneration.cpp.

399 {
400 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
401 return CD;
402 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
403 return ICD->getCategoryDecl();
404 return nullptr;
405}

◆ getCategoryContext() [8/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 418 of file USRGeneration.cpp.

418 {
419 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
420 return CD;
421 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
422 return ICD->getCategoryDecl();
423 return nullptr;
424}

◆ getCategoryContext() [9/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 452 of file USRGeneration.cpp.

453{
454 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
455 return CD;
456 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
457 return ICD->getCategoryDecl();
458 return nullptr;
459}

◆ getCategoryContext() [10/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 406 of file USRGeneration.cpp.

406 {
407 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
408 return CD;
409 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
410 return ICD->getCategoryDecl();
411 return nullptr;
412}

◆ getCategoryContext() [11/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 406 of file USRGeneration.cpp.

406 {
407 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
408 return CD;
409 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
410 return ICD->getCategoryDecl();
411 return nullptr;
412}

◆ getCategoryContext() [12/12]

static const ObjCCategoryDecl * clanguml::getCategoryContext ( const NamedDecl *  D)
static

Definition at line 406 of file USRGeneration.cpp.

406 {
407 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext()))
408 return CD;
409 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext()))
410 return ICD->getCategoryDecl();
411 return nullptr;
412}

◆ GetExternalSourceContainer() [1/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 52 of file USRGeneration.cpp.

52 {
53 if (!D)
54 return StringRef();
55 if (auto *attr = D->getExternalSourceSymbolAttr()) {
56 return attr->getDefinedIn();
57 }
58 return StringRef();
59}

◆ GetExternalSourceContainer() [2/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 52 of file USRGeneration.cpp.

52 {
53 if (!D)
54 return StringRef();
55 if (auto *attr = D->getExternalSourceSymbolAttr()) {
56 return attr->getDefinedIn();
57 }
58 return StringRef();
59}

◆ GetExternalSourceContainer() [3/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 52 of file USRGeneration.cpp.

52 {
53 if (!D)
54 return StringRef();
55 if (auto *attr = D->getExternalSourceSymbolAttr()) {
56 return attr->getDefinedIn();
57 }
58 return StringRef();
59}

◆ GetExternalSourceContainer() [4/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 52 of file USRGeneration.cpp.

52 {
53 if (!D)
54 return StringRef();
55 if (auto *attr = D->getExternalSourceSymbolAttr()) {
56 return attr->getDefinedIn();
57 }
58 return StringRef();
59}

◆ GetExternalSourceContainer() [5/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 52 of file USRGeneration.cpp.

52 {
53 if (!D)
54 return StringRef();
55 if (auto *attr = D->getExternalSourceSymbolAttr()) {
56 return attr->getDefinedIn();
57 }
58 return StringRef();
59}

◆ GetExternalSourceContainer() [6/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 52 of file USRGeneration.cpp.

52 {
53 if (!D)
54 return StringRef();
55 if (auto *attr = D->getExternalSourceSymbolAttr()) {
56 return attr->getDefinedIn();
57 }
58 return StringRef();
59}

◆ GetExternalSourceContainer() [7/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 54 of file USRGeneration.cpp.

54 {
55 if (!D)
56 return StringRef();
57 if (auto *attr = D->getExternalSourceSymbolAttr()) {
58 return attr->getDefinedIn();
59 }
60 return StringRef();
61}

◆ GetExternalSourceContainer() [8/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 54 of file USRGeneration.cpp.

54 {
55 if (!D)
56 return StringRef();
57
58#if !defined(_MSC_VER)
59 if (auto *attr = D->getExternalSourceSymbolAttr()) {
60 return attr->getDefinedIn();
61 }
62#endif
63
64 return StringRef();
65}

◆ GetExternalSourceContainer() [9/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 57 of file USRGeneration.cpp.

58{
59 if (!D)
60 return StringRef();
61
62#if !defined(_MSC_VER)
63 if (auto *attr = D->getExternalSourceSymbolAttr()) {
64 return attr->getDefinedIn();
65 }
66#endif
67
68 return StringRef();
69}

◆ GetExternalSourceContainer() [10/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 54 of file USRGeneration.cpp.

54 {
55 if (!D)
56 return StringRef();
57 if (auto *attr = D->getExternalSourceSymbolAttr()) {
58 return attr->getDefinedIn();
59 }
60 return StringRef();
61}

◆ GetExternalSourceContainer() [11/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 54 of file USRGeneration.cpp.

54 {
55 if (!D)
56 return StringRef();
57 if (auto *attr = D->getExternalSourceSymbolAttr()) {
58 return attr->getDefinedIn();
59 }
60 return StringRef();
61}

◆ GetExternalSourceContainer() [12/12]

static StringRef clanguml::GetExternalSourceContainer ( const NamedDecl *  D)
static

Definition at line 54 of file USRGeneration.cpp.

54 {
55 if (!D)
56 return StringRef();
57 if (auto *attr = D->getExternalSourceSymbolAttr()) {
58 return attr->getDefinedIn();
59 }
60 return StringRef();
61}

◆ printLoc() [1/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 29 of file USRGeneration.cpp.

30 {
31 if (Loc.isInvalid()) {
32 return true;
33 }
34 Loc = SM.getExpansionLoc(Loc);
35 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc);
36 const FileEntry *FE = SM.getFileEntryForID(Decomposed.first);
37 if (FE) {
38 OS << llvm::sys::path::filename(FE->getName());
39 } else {
40 // This case really isn't interesting.
41 return true;
42 }
43 if (IncludeOffset) {
44 // Use the offest into the FileID to represent the location. Using
45 // a line/column can cause us to look back at the original source file,
46 // which is expensive.
47 OS << '@' << Decomposed.second;
48 }
49 return false;
50}

◆ printLoc() [2/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 29 of file USRGeneration.cpp.

30 {
31 if (Loc.isInvalid()) {
32 return true;
33 }
34 Loc = SM.getExpansionLoc(Loc);
35 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc);
36 const FileEntry *FE = SM.getFileEntryForID(Decomposed.first);
37 if (FE) {
38 OS << llvm::sys::path::filename(FE->getName());
39 } else {
40 // This case really isn't interesting.
41 return true;
42 }
43 if (IncludeOffset) {
44 // Use the offest into the FileID to represent the location. Using
45 // a line/column can cause us to look back at the original source file,
46 // which is expensive.
47 OS << '@' << Decomposed.second;
48 }
49 return false;
50}

◆ printLoc() [3/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 29 of file USRGeneration.cpp.

30 {
31 if (Loc.isInvalid()) {
32 return true;
33 }
34 Loc = SM.getExpansionLoc(Loc);
35 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc);
36 const FileEntry *FE = SM.getFileEntryForID(Decomposed.first);
37 if (FE) {
38 OS << llvm::sys::path::filename(FE->getName());
39 } else {
40 // This case really isn't interesting.
41 return true;
42 }
43 if (IncludeOffset) {
44 // Use the offest into the FileID to represent the location. Using
45 // a line/column can cause us to look back at the original source file,
46 // which is expensive.
47 OS << '@' << Decomposed.second;
48 }
49 return false;
50}

◆ printLoc() [4/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 29 of file USRGeneration.cpp.

30 {
31 if (Loc.isInvalid()) {
32 return true;
33 }
34 Loc = SM.getExpansionLoc(Loc);
35 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc);
36 const FileEntry *FE = SM.getFileEntryForID(Decomposed.first);
37 if (FE) {
38 OS << llvm::sys::path::filename(FE->getName());
39 } else {
40 // This case really isn't interesting.
41 return true;
42 }
43 if (IncludeOffset) {
44 // Use the offest into the FileID to represent the location. Using
45 // a line/column can cause us to look back at the original source file,
46 // which is expensive.
47 OS << '@' << Decomposed.second;
48 }
49 return false;
50}

◆ printLoc() [5/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 29 of file USRGeneration.cpp.

30 {
31 if (Loc.isInvalid()) {
32 return true;
33 }
34 Loc = SM.getExpansionLoc(Loc);
35 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc);
36 const FileEntry *FE = SM.getFileEntryForID(Decomposed.first);
37 if (FE) {
38 OS << llvm::sys::path::filename(FE->getName());
39 } else {
40 // This case really isn't interesting.
41 return true;
42 }
43 if (IncludeOffset) {
44 // Use the offest into the FileID to represent the location. Using
45 // a line/column can cause us to look back at the original source file,
46 // which is expensive.
47 OS << '@' << Decomposed.second;
48 }
49 return false;
50}

◆ printLoc() [6/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 29 of file USRGeneration.cpp.

30 {
31 if (Loc.isInvalid()) {
32 return true;
33 }
34 Loc = SM.getExpansionLoc(Loc);
35 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc);
36 const FileEntry *FE = SM.getFileEntryForID(Decomposed.first);
37 if (FE) {
38 OS << llvm::sys::path::filename(FE->getName());
39 } else {
40 // This case really isn't interesting.
41 return true;
42 }
43 if (IncludeOffset) {
44 // Use the offest into the FileID to represent the location. Using
45 // a line/column can cause us to look back at the original source file,
46 // which is expensive.
47 OS << '@' << Decomposed.second;
48 }
49 return false;
50}

◆ printLoc() [7/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 31 of file USRGeneration.cpp.

32 {
33 if (Loc.isInvalid()) {
34 return true;
35 }
36 Loc = SM.getExpansionLoc(Loc);
37 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc);
38 OptionalFileEntryRef FE = SM.getFileEntryRefForID(Decomposed.first);
39 if (FE) {
40 OS << llvm::sys::path::filename(FE->getName());
41 } else {
42 // This case really isn't interesting.
43 return true;
44 }
45 if (IncludeOffset) {
46 // Use the offest into the FileID to represent the location. Using
47 // a line/column can cause us to look back at the original source file,
48 // which is expensive.
49 OS << '@' << Decomposed.second;
50 }
51 return false;
52}

◆ printLoc() [8/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 31 of file USRGeneration.cpp.

32 {
33 if (Loc.isInvalid()) {
34 return true;
35 }
36 Loc = SM.getExpansionLoc(Loc);
37 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc);
38 OptionalFileEntryRef FE = SM.getFileEntryRefForID(Decomposed.first);
39 if (FE) {
40 OS << llvm::sys::path::filename(FE->getName());
41 } else {
42 // This case really isn't interesting.
43 return true;
44 }
45 if (IncludeOffset) {
46 // Use the offest into the FileID to represent the location. Using
47 // a line/column can cause us to look back at the original source file,
48 // which is expensive.
49 OS << '@' << Decomposed.second;
50 }
51 return false;
52}

◆ printLoc() [9/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 32 of file USRGeneration.cpp.

34{
35 if (Loc.isInvalid()) {
36 return true;
37 }
38 Loc = SM.getExpansionLoc(Loc);
39 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc);
40 OptionalFileEntryRef FE = SM.getFileEntryRefForID(Decomposed.first);
41 if (FE) {
42 OS << llvm::sys::path::filename(FE->getName());
43 }
44 else {
45 // This case really isn't interesting.
46 return true;
47 }
48 if (IncludeOffset) {
49 // Use the offset into the FileID to represent the location. Using
50 // a line/column can cause us to look back at the original source file,
51 // which is expensive.
52 OS << '@' << Decomposed.second;
53 }
54 return false;
55}

◆ printLoc() [10/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 31 of file USRGeneration.cpp.

32 {
33 if (Loc.isInvalid()) {
34 return true;
35 }
36 Loc = SM.getExpansionLoc(Loc);
37 const FileIDAndOffset &Decomposed = SM.getDecomposedLoc(Loc);
38 OptionalFileEntryRef FE = SM.getFileEntryRefForID(Decomposed.first);
39 if (FE) {
40 OS << llvm::sys::path::filename(FE->getName());
41 } else {
42 // This case really isn't interesting.
43 return true;
44 }
45 if (IncludeOffset) {
46 // Use the offest into the FileID to represent the location. Using
47 // a line/column can cause us to look back at the original source file,
48 // which is expensive.
49 OS << '@' << Decomposed.second;
50 }
51 return false;
52}

◆ printLoc() [11/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 31 of file USRGeneration.cpp.

32 {
33 if (Loc.isInvalid()) {
34 return true;
35 }
36 Loc = SM.getExpansionLoc(Loc);
37 const FileIDAndOffset &Decomposed = SM.getDecomposedLoc(Loc);
38 OptionalFileEntryRef FE = SM.getFileEntryRefForID(Decomposed.first);
39 if (FE) {
40 OS << llvm::sys::path::filename(FE->getName());
41 } else {
42 // This case really isn't interesting.
43 return true;
44 }
45 if (IncludeOffset) {
46 // Use the offest into the FileID to represent the location. Using
47 // a line/column can cause us to look back at the original source file,
48 // which is expensive.
49 OS << '@' << Decomposed.second;
50 }
51 return false;
52}

◆ printLoc() [12/12]

static bool clanguml::printLoc ( llvm::raw_ostream &  OS,
SourceLocation  Loc,
const SourceManager &  SM,
bool  IncludeOffset 
)
static
Returns
true on error.

Definition at line 31 of file USRGeneration.cpp.

32 {
33 if (Loc.isInvalid()) {
34 return true;
35 }
36 Loc = SM.getExpansionLoc(Loc);
37 const FileIDAndOffset &Decomposed = SM.getDecomposedLoc(Loc);
38 OptionalFileEntryRef FE = SM.getFileEntryRefForID(Decomposed.first);
39 if (FE) {
40 OS << llvm::sys::path::filename(FE->getName());
41 } else {
42 // This case really isn't interesting.
43 return true;
44 }
45 if (IncludeOffset) {
46 // Use the offest into the FileID to represent the location. Using
47 // a line/column can cause us to look back at the original source file,
48 // which is expensive.
49 OS << '@' << Decomposed.second;
50 }
51 return false;
52}

◆ printQualifier() [1/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
ASTContext &  Ctx,
NestedNameSpecifier *  NNS 
)
static

Definition at line 628 of file USRGeneration.cpp.

628 {
629 // FIXME: Encode the qualifier, don't just print it.
630 PrintingPolicy PO(Ctx.getLangOpts());
631 PO.SuppressTagKeyword = true;
632 PO.SuppressUnwrittenScope = true;
633 PO.ConstantArraySizeAsWritten = false;
634 PO.AnonymousTagLocations = false;
635 NNS->print(Out, PO);
636}

◆ printQualifier() [2/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
ASTContext &  Ctx,
NestedNameSpecifier *  NNS 
)
static

Definition at line 628 of file USRGeneration.cpp.

628 {
629 // FIXME: Encode the qualifier, don't just print it.
630 PrintingPolicy PO(Ctx.getLangOpts());
631 PO.SuppressTagKeyword = true;
632 PO.SuppressUnwrittenScope = true;
633 PO.ConstantArraySizeAsWritten = false;
634 PO.AnonymousTagLocations = false;
635 NNS->print(Out, PO);
636}

◆ printQualifier() [3/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
ASTContext &  Ctx,
NestedNameSpecifier *  NNS 
)
static

Definition at line 628 of file USRGeneration.cpp.

628 {
629 // FIXME: Encode the qualifier, don't just print it.
630 PrintingPolicy PO(Ctx.getLangOpts());
631 PO.SuppressTagKeyword = true;
632 PO.SuppressUnwrittenScope = true;
633 PO.ConstantArraySizeAsWritten = false;
634 PO.AnonymousTagLocations = false;
635 NNS->print(Out, PO);
636}

◆ printQualifier() [4/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
ASTContext &  Ctx,
NestedNameSpecifier *  NNS 
)
static

Definition at line 630 of file USRGeneration.cpp.

630 {
631 // FIXME: Encode the qualifier, don't just print it.
632 PrintingPolicy PO(Ctx.getLangOpts());
633 PO.SuppressTagKeyword = true;
634 PO.SuppressUnwrittenScope = true;
635 PO.ConstantArraySizeAsWritten = false;
636 PO.AnonymousTagLocations = false;
637 NNS->print(Out, PO);
638}

◆ printQualifier() [5/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
ASTContext &  Ctx,
NestedNameSpecifier *  NNS 
)
static

Definition at line 633 of file USRGeneration.cpp.

633 {
634 // FIXME: Encode the qualifier, don't just print it.
635 PrintingPolicy PO(Ctx.getLangOpts());
636 PO.SuppressTagKeyword = true;
637 PO.SuppressUnwrittenScope = true;
638 PO.ConstantArraySizeAsWritten = false;
639 PO.AnonymousTagLocations = false;
640 NNS->print(Out, PO);
641}

◆ printQualifier() [6/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
ASTContext &  Ctx,
NestedNameSpecifier *  NNS 
)
static

Definition at line 637 of file USRGeneration.cpp.

637 {
638 // FIXME: Encode the qualifier, don't just print it.
639 PrintingPolicy PO(Ctx.getLangOpts());
640 PO.SuppressTagKeyword = true;
641 PO.SuppressUnwrittenScope = true;
642 PO.ConstantArraySizeAsWritten = false;
643 PO.AnonymousTagLocations = false;
644 NNS->print(Out, PO);
645}

◆ printQualifier() [7/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
ASTContext &  Ctx,
NestedNameSpecifier *  NNS 
)
static

Definition at line 655 of file USRGeneration.cpp.

655 {
656 // FIXME: Encode the qualifier, don't just print it.
657 PrintingPolicy PO(Ctx.getLangOpts());
658 PO.SuppressTagKeyword = true;
659 PO.SuppressUnwrittenScope = true;
660 PO.ConstantArraySizeAsWritten = false;
661 PO.AnonymousTagLocations = false;
662 NNS->print(Out, PO);
663}

◆ printQualifier() [8/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
ASTContext &  Ctx,
NestedNameSpecifier *  NNS 
)
static

Definition at line 674 of file USRGeneration.cpp.

674 {
675 // FIXME: Encode the qualifier, don't just print it.
676 PrintingPolicy PO(Ctx.getLangOpts());
677 PO.SuppressTagKeyword = true;
678 PO.SuppressUnwrittenScope = true;
679 PO.ConstantArraySizeAsWritten = false;
680 PO.AnonymousTagLocations = false;
681 NNS->print(Out, PO);
682}

◆ printQualifier() [9/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
const LangOptions &  LangOpts,
NestedNameSpecifier *  NNS 
)
static

Definition at line 722 of file USRGeneration.cpp.

724{
725 // FIXME: Encode the qualifier, don't just print it.
726 PrintingPolicy PO(LangOpts);
727 PO.SuppressTagKeyword = true;
728 PO.SuppressUnwrittenScope = true;
729 PO.ConstantArraySizeAsWritten = false;
730 PO.AnonymousTagLocations = false;
731 NNS->print(Out, PO);
732}

◆ printQualifier() [10/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
const LangOptions &  LangOpts,
NestedNameSpecifier *  NNS 
)
static

Definition at line 662 of file USRGeneration.cpp.

663 {
664 // FIXME: Encode the qualifier, don't just print it.
665 PrintingPolicy PO(LangOpts);
666 PO.SuppressTagKeyword = true;
667 PO.SuppressUnwrittenScope = true;
668 PO.ConstantArraySizeAsWritten = false;
669 PO.AnonymousTagLocations = false;
670 NNS->print(Out, PO);
671}

◆ printQualifier() [11/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
const LangOptions &  LangOpts,
NestedNameSpecifier  NNS 
)
static

Definition at line 662 of file USRGeneration.cpp.

663 {
664 // FIXME: Encode the qualifier, don't just print it.
665 PrintingPolicy PO(LangOpts);
666 PO.SuppressTagKeyword = true;
667 PO.SuppressUnwrittenScope = true;
668 PO.ConstantArraySizeAsWritten = false;
669 PO.AnonymousTagLocations = false;
670 NNS.print(Out, PO);
671}

◆ printQualifier() [12/12]

static void clanguml::printQualifier ( llvm::raw_ostream &  Out,
const LangOptions &  LangOpts,
NestedNameSpecifier  NNS 
)
static

Definition at line 662 of file USRGeneration.cpp.

663 {
664 // FIXME: Encode the qualifier, don't just print it.
665 PrintingPolicy PO(LangOpts);
666 PO.SuppressTagKeyword = true;
667 PO.SuppressUnwrittenScope = true;
668 PO.ConstantArraySizeAsWritten = false;
669 PO.AnonymousTagNameStyle =
670 llvm::to_underlying(PrintingPolicy::AnonymousTagMode::Plain);
671 NNS.print(Out, PO);
672}