Skip to content

Commit 850dadb

Browse files
committed
AI review nitpick suggestion
1 parent d474f89 commit 850dadb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cpp-linter/src/clang_tools/clang_tidy.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ pub struct TidyNotification {
7575
impl TidyNotification {
7676
pub fn diagnostic_link(&self) -> String {
7777
if self.diagnostic.starts_with("clang-diagnostic-") {
78+
// clang-diagnostic-* diagnostics are compiler diagnostics and don't have
79+
// dedicated clang-tidy documentation pages, so return the name as-is.
7880
return self.diagnostic.clone();
7981
}
8082
if let Some((category, name)) = if self.diagnostic.starts_with("clang-analyzer-") {

0 commit comments

Comments
 (0)