MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / SetDeclarationName

Method SetDeclarationName

libs/wxutil/decl/DeclFileInfo.h:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void SetDeclarationName(const std::string& declName)
49 {
50 auto decl = GlobalDeclarationManager().findDeclaration(_declType, declName);
51
52 setName(!declName.empty() && decl ? decl->getDeclName() : std::string());
53 setPath(!declName.empty() && decl ? decl->getDeclFilePath() : std::string());
54 }
55
56 void Clear()
57 {

Callers 2

updateDeclFileInfoMethod · 0.80

Calls 4

getDeclNameMethod · 0.80
findDeclarationMethod · 0.45
emptyMethod · 0.45
getDeclFilePathMethod · 0.45

Tested by

no test coverage detected