]> granicus.if.org Git - clang/commitdiff
[tooling] Fix missing inline keyworkd, breaking build bot.
authorEtienne Bergeron <etienneb@google.com>
Wed, 11 May 2016 20:09:17 +0000 (20:09 +0000)
committerEtienne Bergeron <etienneb@google.com>
Wed, 11 May 2016 20:09:17 +0000 (20:09 +0000)
Summary:
The missing keyword "inline" is causing some buildbot to fail.
The symbol is not available.

see: http://lab.llvm.org:8011/builders/clang-ppc64be-linux-multistage/builds/2281/

Reviewers: rnk

Subscribers: cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D20180

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269224 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Tooling/FixIt.h

index bf4e0e42113c40e93832b72e4865dae9fadd401c..733de5074a6ad7a18a77b69d78689145197dde4e 100644 (file)
@@ -40,27 +40,27 @@ 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> 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));
 }