return the classes to add in the span
| 967 | |
| 968 | //return the classes to add in the span |
| 969 | std::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 |
nothing calls this directly
no outgoing calls
no test coverage detected