]> granicus.if.org Git - clang/commitdiff
ASTContext.h: Modularize/fix ODR violations by removing 'static' from inline function...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 27 Oct 2017 20:40:44 +0000 (20:40 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 27 Oct 2017 20:40:44 +0000 (20:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316791 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h

index 09035be0219f93531323984b429e844e2f7f5488..1498c366d7b734d9099fdfcccc7431df02f72f6e 100644 (file)
@@ -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);
 }