================ @@ -0,0 +1,114 @@ +//===----------------------------------------------------------------------===// +// +// 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 "ClangTidyAliases.h" +#include "../ClangTidyModule.h" +#include "llvm/ADT/StringMap.h" +#include <cassert> + +namespace clang::tidy { + +/// Alias table. Kept sorted by alias name for readability. +static constexpr std::pair<StringRef, StringRef> AliasTable[] = { + // Permanent aliases. + {"cert-dcl03-c", "misc-static-assert"}, + {"cert-oop11-cpp", "performance-move-constructor-init"}, + // Deprecated aliases: keeping for backward compatibility. + {"hicpp-avoid-c-arrays", "modernize-avoid-c-arrays"}, ---------------- vbvictor wrote:
Normally, we just leave notice in ReleaseNotes about deprecation and don't remove/delete source code, e.g. in https://clang.llvm.org/extra/ReleaseNotes.html#potentially-breaking-changes there is note about `performance-faster-string-find` which will be removed in 2 releases. So we don't have to add any new code/modules to support this. https://github.com/llvm/llvm-project/pull/197927 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
