From 1b677dbd44edd045359fc62abb64eb703d88fee4 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Mon, 9 Mar 2015 12:18:39 +0000 Subject: [clang-tidy] Refactor: Rename clang-tidy readability check files and classes to follow naming conventions Classes are named WhateverCheck, files are WhateverCheck.cpp and` WhateverCheck.h` http://reviews.llvm.org/D8144 Patch by Richard Thomson! llvm-svn: 231650 --- .../clang-tidy/readability/RedundantSmartptrGet.h | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 clang-tools-extra/clang-tidy/readability/RedundantSmartptrGet.h (limited to 'clang-tools-extra/clang-tidy/readability/RedundantSmartptrGet.h') diff --git a/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGet.h b/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGet.h deleted file mode 100644 index 40f0c74cb5c..00000000000 --- a/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGet.h +++ /dev/null @@ -1,38 +0,0 @@ -//===--- RedundantSmartptrGet.h - clang-tidy --------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_READABILITY_REDUNDANTSMARTPTRGET_H -#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_READABILITY_REDUNDANTSMARTPTRGET_H - -#include "../ClangTidy.h" - -namespace clang { -namespace tidy { -namespace readability { - -/// \brief Find and remove redundant calls to smart pointer's .get() method. -/// -/// Examples: -/// ptr.get()->Foo() ==> ptr->Foo() -/// *ptr.get() ==> *ptr -/// *ptr->get() ==> **ptr -class RedundantSmartptrGet : public ClangTidyCheck { -public: - RedundantSmartptrGet(StringRef Name, ClangTidyContext *Context) - : ClangTidyCheck(Name, Context) {} - void registerMatchers(ast_matchers::MatchFinder *Finder) override; - void check(const ast_matchers::MatchFinder::MatchResult &Result) override; -}; - -} // namespace readability -} // namespace tidy -} // namespace clang - -#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_READABILITY_REDUNDANTSMARTPTRGET_H - -- cgit v1.2.3