[PATCH] D20647: Add flag to add InlineHint attribute on implicitly inline functions

Paul Robinson via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 17 11:20:59 PDT 2016


probinson added a subscriber: probinson.
probinson added a comment.

I'm still bemused that Clang thinks of a defined-in-class method and a method marked with 'inline' as significantly different things.  But given that it does, a way to make them be treated the same will be nice.


================
Comment at: include/clang/Driver/Options.td:751
@@ -750,1 +750,3 @@
+def finline_implicit_hint: Flag<["-"], "finline-implicit-hint">, Group<f_clang_Group>, Flags<[CC1Option]>;
+def fno_inline_implicit_hint: Flag<["-"], "fno-inline-implicit-hint">, Group<f_clang_Group>, Flags<[CC1Option]>;
 def finline : Flag<["-"], "finline">, Group<clang_ignored_f_Group>;
----------------
Seems like a HelpText would be appropriate here?


http://reviews.llvm.org/D20647





More information about the cfe-commits mailing list