Mercurial > hg > CbC > CbC_llvm
diff clang-tools-extra/clangd/Quality.cpp @ 173:0572611fdcc8 llvm10 llvm12
reorgnization done
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 11:55:54 +0900 |
parents | 1d019706d866 |
children | 2e18cbf3894f |
line wrap: on
line diff
--- a/clang-tools-extra/clangd/Quality.cpp Mon May 25 11:50:15 2020 +0900 +++ b/clang-tools-extra/clangd/Quality.cpp Mon May 25 11:55:54 2020 +0900 @@ -129,6 +129,8 @@ case index::SymbolKind::Extension: case index::SymbolKind::Union: case index::SymbolKind::TypeAlias: + case index::SymbolKind::TemplateTypeParm: + case index::SymbolKind::TemplateTemplateParm: return SymbolQualitySignals::Type; case index::SymbolKind::Function: case index::SymbolKind::ClassMethod: @@ -147,6 +149,7 @@ case index::SymbolKind::Field: case index::SymbolKind::EnumConstant: case index::SymbolKind::Parameter: + case index::SymbolKind::NonTypeTemplateParm: return SymbolQualitySignals::Variable; case index::SymbolKind::Using: case index::SymbolKind::Module: @@ -204,7 +207,7 @@ // question of whether 0 references means a bad symbol or missing data. if (References >= 10) { // Use a sigmoid style boosting function, which flats out nicely for large - // numbers (e.g. 2.58 for 1M refererences). + // numbers (e.g. 2.58 for 1M references). // The following boosting function is equivalent to: // m = 0.06 // f = 12.0