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

Method tag

generator/commenthandler.cpp:238–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236
237private:
238 void tag(llvm::StringRef className, clang::SourceRange range, llvm::StringRef ref = llvm::StringRef()) {
239 int len = range.getEnd().getRawEncoding() - range.getBegin().getRawEncoding() + 1;
240 if (len > 0) {
241 std::string attr;
242 if (ref.empty()) {
243 attr = "class=\"" % className % "\"";
244 } else {
245 attr = "class=\"" % className % "\" data-ref=\"" % ref % "\"";
246 }
247 auto offset = annotator.getSourceMgr().getFileOffset(range.getBegin());
248 generator.addTag("span", attr, offset, len);
249 }
250 }
251
252 // Parse the \value command (for enum values)
253 void parseEnumValue(const clang::comments::BlockCommandComment *C) {

Callers

nothing calls this directly

Calls 1

addTagMethod · 0.80

Tested by

no test coverage detected