MCPcopy Create free account
hub / github.com/KDAB/codebrowser / addTag

Method addTag

generator/generator.h:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64public:
65
66 void addTag(std::string name, std::string attributes, int pos, int len) {
67 if (len < 0) {
68 return;
69 }
70 Tag t = {std::move(name), std::move(attributes), pos, len};
71 auto it = tags.find(t);
72 if (it != tags.end() && *it == t) return; //Hapens in macro for example
73 tags.insert(std::move(t));
74 }
75 void addProject(std::string a, std::string b) {
76 projects.insert({std::move(a), std::move(b) });
77 }

Callers 12

MacroExpandsMethod · 0.80
MacroDefinedMethod · 0.80
MacroUndefinedMethod · 0.80
InclusionDirectiveMethod · 0.80
DefinedMethod · 0.80
HandlePPCondMethod · 0.80
registerReferenceMethod · 0.80
annotateSourceRangeMethod · 0.80
syntaxHighlightMethod · 0.80
tagMethod · 0.80
handleUrlsInCommentFunction · 0.80
handleCommentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected