[clang-tools-extra] [clang-tidy] Add bugprone-chained-comparison check (PR #76365)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 21 13:10:40 PST 2024
================
@@ -0,0 +1,147 @@
+//===--- ChainedComparisonCheck.cpp - clang-tidy --------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "ChainedComparisonCheck.h"
+#include "clang/AST/ASTContext.h"
+#include "clang/ASTMatchers/ASTMatchFinder.h"
+#include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/SmallVector.h"
+#include <algorithm>
+#include <array>
----------------
5chmidti wrote:
Unused include `<array>`
https://github.com/llvm/llvm-project/pull/76365
More information about the cfe-commits
mailing list