================ @@ -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"}, ---------------- earnol wrote:
Yeah. The whole idea is to have a convenient mechanism to preserve temporal aliases to give users a time for transition and make landing of potentially breaking changes softer. https://github.com/llvm/llvm-project/pull/197927 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
