================
@@ -0,0 +1,147 @@
+//===--- VisibilityChangeToVirtualFunctionCheck.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 "VisibilityChangeToVirtualFunctionCheck.h"
+#include "../utils/Matchers.h"
+#include "../utils/OptionsUtils.h"
+#include "clang/ASTMatchers/ASTMatchFinder.h"
+
+using namespace clang::ast_matchers;
+using namespace clang;
+
+namespace {
+AST_MATCHER(NamedDecl, isOperatorDecl) {
+  DeclarationName::NameKind NK = Node.getDeclName().getNameKind();
+  return NK != DeclarationName::Identifier &&
+         NK != DeclarationName::CXXConstructorName &&
+         NK != DeclarationName::CXXDestructorName;
+}
+} // namespace
+
+namespace clang::tidy {
+
+template <>
+struct OptionEnumMapping<
----------------
balazske wrote:

It is not convenient because it uses things from the `clang::tidy` namespace. 
(In other checkers these mappings are in `clang::tidy` too.)

https://github.com/llvm/llvm-project/pull/140086
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to