]> granicus.if.org Git - clang/blobdiff - include/clang/Tooling/FixIt.h
[tooling] Remove redundant inline keyword
[clang] / include / clang / Tooling / FixIt.h
index 733de5074a6ad7a18a77b69d78689145197dde4e..e2259d4357bc6ada4a693ae7f37f63bc18d69cf7 100644 (file)
@@ -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));