This is an archive of the discontinued LLVM Phabricator instance.

[NFC] disabling clang-tidy check readability-identifier-naming in Protocol.h
ClosedPublic

Authored by kuhnel on Nov 15 2021, 6:37 AM.

Details

Summary

The file follows the LSP syntax, so we're intentially deviating
from the LLVM coding standard.

Diff Detail

Event Timeline

kuhnel created this revision.Nov 15 2021, 6:37 AM
kuhnel published this revision for review.Nov 15 2021, 6:38 AM
kuhnel added subscribers: sammccall, hokein, adamcz, kbobyrev.
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2021, 6:39 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
kbobyrev added inline comments.Nov 15 2021, 6:45 AM
clang-tools-extra/clangd/Protocol.h
39

Nit: we're only using C-style comments for single-line parameter name "injection".

Context:

https://llvm.org/docs/CodingStandards.html#comment-formatting

hokein accepted this revision.Nov 16 2021, 5:49 AM

This looks the best we can do, please address Kirill's comment.

I spotted a related crash bug (https://github.com/clangd/clangd/issues/929) in clangd, but I think this patch should be fine to go.

This revision is now accepted and ready to land.Nov 16 2021, 5:49 AM

I just checked with my local clangd and it does not crash on this file...

I just checked with my local clangd and it does not crash on this file...

yeah, this file is fine, the crash only occurs if you use an assertion-enabled clangd and the code has an unmatched NOLINTBEGIN.