This revision was automatically updated to reflect the committed changes. Closed by commit rL269224: [tooling] Fix missing inline keyworkd, breaking build bot. (authored by etienneb).
Changed prior to commit: http://reviews.llvm.org/D20180?vs=56949&id=56954#toc Repository: rL LLVM http://reviews.llvm.org/D20180 Files: cfe/trunk/include/clang/Tooling/FixIt.h Index: cfe/trunk/include/clang/Tooling/FixIt.h =================================================================== --- cfe/trunk/include/clang/Tooling/FixIt.h +++ cfe/trunk/include/clang/Tooling/FixIt.h @@ -40,27 +40,27 @@ /// \brief Returns the SourceRange of an given Node. \p Node is typically a /// 'Stmt', 'Expr' or a 'Decl'. -template <typename T> SourceRange getSourceRange(const T &Node) { +template <typename T> inline SourceRange getSourceRange(const T &Node) { return Node.getSourceRange(); } } // end namespace internal // \brief Returns a textual representation of \p Node. template <typename T> -StringRef getText(const T &Node, const ASTContext &Context) { +inline 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> FixItHint createRemoval(const T &Node) { +template <typename T> inline 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> -FixItHint createReplacement(const D &Destination, const S &Source, - const ASTContext &Context) { +inline FixItHint createReplacement(const D &Destination, const S &Source, + const ASTContext &Context) { return FixItHint::CreateReplacement(internal::getSourceRange(Destination), getText(Source, Context)); }
Index: cfe/trunk/include/clang/Tooling/FixIt.h =================================================================== --- cfe/trunk/include/clang/Tooling/FixIt.h +++ cfe/trunk/include/clang/Tooling/FixIt.h @@ -40,27 +40,27 @@ /// \brief Returns the SourceRange of an given Node. \p Node is typically a /// 'Stmt', 'Expr' or a 'Decl'. -template <typename T> SourceRange getSourceRange(const T &Node) { +template <typename T> inline SourceRange getSourceRange(const T &Node) { return Node.getSourceRange(); } } // end namespace internal // \brief Returns a textual representation of \p Node. template <typename T> -StringRef getText(const T &Node, const ASTContext &Context) { +inline 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> FixItHint createRemoval(const T &Node) { +template <typename T> inline 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> -FixItHint createReplacement(const D &Destination, const S &Source, - const ASTContext &Context) { +inline FixItHint createReplacement(const D &Destination, const S &Source, + const ASTContext &Context) { return FixItHint::CreateReplacement(internal::getSourceRange(Destination), getText(Source, Context)); }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits