diff options
| author | Alexander Kornienko <alexfh@google.com> | 2015-03-09 12:18:39 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2015-03-09 12:18:39 +0000 |
| commit | 1b677dbd44edd045359fc62abb64eb703d88fee4 (patch) | |
| tree | 217bf5f633c88671d60240cd7e348b572be321ea /clang-tools-extra/clang-tidy/readability/RedundantSmartptrGet.h | |
| parent | 1d2c052e9f09144cc1a837e135cbf1982d6b4b9f (diff) | |
| download | bcm5719-llvm-1b677dbd44edd045359fc62abb64eb703d88fee4.tar.gz bcm5719-llvm-1b677dbd44edd045359fc62abb64eb703d88fee4.zip | |
[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
Diffstat (limited to 'clang-tools-extra/clang-tidy/readability/RedundantSmartptrGet.h')
| -rw-r--r-- | clang-tools-extra/clang-tidy/readability/RedundantSmartptrGet.h | 38 |
1 files changed, 0 insertions, 38 deletions
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 - |

