r316793 - Sanitizers.h: Modularize/Fix ODR violations by making inline functions non-static

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 13:40:45 PDT 2017


Author: dblaikie
Date: Fri Oct 27 13:40:45 2017
New Revision: 316793

URL: http://llvm.org/viewvc/llvm-project?rev=316793&view=rev
Log:
Sanitizers.h: Modularize/Fix ODR violations by making inline functions non-static

Modified:
    cfe/trunk/include/clang/Basic/Sanitizers.h

Modified: cfe/trunk/include/clang/Basic/Sanitizers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Sanitizers.h?rev=316793&r1=316792&r2=316793&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Sanitizers.h (original)
+++ cfe/trunk/include/clang/Basic/Sanitizers.h Fri Oct 27 13:40:45 2017
@@ -80,7 +80,7 @@ SanitizerMask parseSanitizerValue(String
 SanitizerMask expandSanitizerGroups(SanitizerMask Kinds);
 
 /// Return the sanitizers which do not affect preprocessing.
-static inline SanitizerMask getPPTransparentSanitizers() {
+inline SanitizerMask getPPTransparentSanitizers() {
   return SanitizerKind::CFI | SanitizerKind::Integer |
          SanitizerKind::Nullability | SanitizerKind::Undefined;
 }




More information about the cfe-commits mailing list