summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-05-12 00:22:28 +0000
committerEtienne Bergeron <etienneb@google.com>2016-05-12 00:22:28 +0000
commit394dfff1ed11066e8367b7bcfd8d0678719a02d5 (patch)
tree4b894dc5e9bea99cad542433675f6903e532aa83
parented4f37850eaa5ce04fcd3dae1d5a3d5f3ebb5091 (diff)
downloadbcm5719-llvm-394dfff1ed11066e8367b7bcfd8d0678719a02d5.tar.gz
bcm5719-llvm-394dfff1ed11066e8367b7bcfd8d0678719a02d5.zip
[tooling] Remove redundant inline keyword
Summary: The inline keywords are redundant. Introduce by this commit to try to fix broken build bots: http://reviews.llvm.org/D20180 Tested on Debug and Release build [linux]. Tested on Release + Shared (-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON) [linux] Tested on Release [windows] Reviewers: alexfh Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D20189 llvm-svn: 269257
-rw-r--r--clang/include/clang/Tooling/FixIt.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Tooling/FixIt.h b/clang/include/clang/Tooling/FixIt.h
index 733de5074a6..e2259d4357b 100644
--- a/clang/include/clang/Tooling/FixIt.h
+++ b/clang/include/clang/Tooling/FixIt.h
@@ -40,26 +40,26 @@ inline SourceRange getSourceRange(const SourceLocation &Loc) {
/// \brief Returns the SourceRange of an given Node. \p Node is typically a
/// 'Stmt', 'Expr' or a 'Decl'.
-template <typename T> inline SourceRange getSourceRange(const T &Node) {
+template <typename T> SourceRange getSourceRange(const T &Node) {
return Node.getSourceRange();
}
} // end namespace internal
// \brief Returns a textual representation of \p Node.
template <typename T>
-inline StringRef getText(const T &Node, const ASTContext &Context) {
+StringRef getText(const T &Node, const ASTContext &Context) {
return internal::getText(internal::getSourceRange(Node), Context);
}
// \brief Returns a FixItHint to remove \p Node.
// TODO: Add support for related syntactical elements (i.e. comments, ...).
-template <typename T> inline FixItHint createRemoval(const T &Node) {
+template <typename T> FixItHint createRemoval(const T &Node) {
return FixItHint::CreateRemoval(internal::getSourceRange(Node));
}
// \brief Returns a FixItHint to replace \p Destination by \p Source.
template <typename D, typename S>
-inline FixItHint createReplacement(const D &Destination, const S &Source,
+FixItHint createReplacement(const D &Destination, const S &Source,
const ASTContext &Context) {
return FixItHint::CreateReplacement(internal::getSourceRange(Destination),
getText(Source, Context));
OpenPOWER on IntegriCloud