[clang-tools-extra] 75a0784 - [NFC] disabling clang-tidy check readability-identifier-naming in Protocol.h
Christian Kühnel via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 16 07:26:26 PST 2021
Author: Christian Kühnel
Date: 2021-11-16T15:25:43Z
New Revision: 75a078455fc71cddc5e04b709b349125b610e1bb
URL: https://github.com/llvm/llvm-project/commit/75a078455fc71cddc5e04b709b349125b610e1bb
DIFF: https://github.com/llvm/llvm-project/commit/75a078455fc71cddc5e04b709b349125b610e1bb.diff
LOG: [NFC] disabling clang-tidy check readability-identifier-naming in Protocol.h
The file follows the LSP syntax, so we're intentially deviating
from the LLVM coding standard.
Differential Revision: https://reviews.llvm.org/D113889
Added:
Modified:
clang-tools-extra/clangd/Protocol.h
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/Protocol.h b/clang-tools-extra/clangd/Protocol.h
index 3a1eae587554..5ce7b4e4da73 100644
--- a/clang-tools-extra/clangd/Protocol.h
+++ b/clang-tools-extra/clangd/Protocol.h
@@ -36,6 +36,11 @@
#include <string>
#include <vector>
+// This file is using the LSP syntax for identifier names which is
diff erent
+// from the LLVM coding standard. To avoid the clang-tidy warnings, we're
+// disabling one check here.
+// NOLINTBEGIN(readability-identifier-naming)
+
namespace clang {
namespace clangd {
@@ -1794,4 +1799,6 @@ template <> struct format_provider<clang::clangd::Position> {
};
} // namespace llvm
+// NOLINTEND(readability-identifier-naming)
+
#endif
More information about the cfe-commits
mailing list