From: David Blaikie Date: Fri, 27 Oct 2017 20:40:44 +0000 (+0000) Subject: ASTContext.h: Modularize/fix ODR violations by removing 'static' from inline function... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cd56764e034749c30dbdf2c3a1105c739d45c8c;p=clang ASTContext.h: Modularize/fix ODR violations by removing 'static' from inline functions in headers git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316791 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index 09035be021..1498c366d7 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -2779,13 +2779,13 @@ public: }; /// \brief Utility function for constructing a nullary selector. -static inline Selector GetNullarySelector(StringRef name, ASTContext& Ctx) { +inline Selector GetNullarySelector(StringRef name, ASTContext &Ctx) { IdentifierInfo* II = &Ctx.Idents.get(name); return Ctx.Selectors.getSelector(0, &II); } /// \brief Utility function for constructing an unary selector. -static inline Selector GetUnarySelector(StringRef name, ASTContext& Ctx) { +inline Selector GetUnarySelector(StringRef name, ASTContext &Ctx) { IdentifierInfo* II = &Ctx.Idents.get(name); return Ctx.Selectors.getSelector(1, &II); }