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

Method computeClas

generator/annotator.cpp:969–977  ·  view source on GitHub ↗

return the classes to add in the span

Source from the content-addressed store, hash-verified

967
968//return the classes to add in the span
969std::string Annotator::computeClas(clang::NamedDecl* decl)
970{
971 std::string s;
972 if (clang::CXXMethodDecl* f = llvm::dyn_cast<clang::CXXMethodDecl>(decl)) {
973 if (f->isVirtual())
974 s = "virtual";
975 }
976 return s;
977}
978
979
980/* This function is inspired From clang::html::SyntaxHighlight() from HTMLRewrite.cpp

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected