[Lldb-commits] [lldb] r248429 - The Visual Studio compiler does not like this C-ism when 'enum class'es are involved

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 23 14:31:03 PDT 2015


If you change "enum" to "enum class" I think it will work (IANALL but I
think it's even more correct).  But if what you've done works, then that
should be fine.

On Wed, Sep 23, 2015 at 1:50 PM Enrico Granata via lldb-commits <
lldb-commits at lists.llvm.org> wrote:

> Author: enrico
> Date: Wed Sep 23 15:49:15 2015
> New Revision: 248429
>
> URL: http://llvm.org/viewvc/llvm-project?rev=248429&view=rev
> Log:
> The Visual Studio compiler does not like this C-ism when 'enum class'es
> are involved
>
>
> Modified:
>
> lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
>
> Modified:
> lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
> URL:
> http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h?rev=248429&r1=248428&r2=248429&view=diff
>
> ==============================================================================
> ---
> lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
> (original)
> +++
> lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
> Wed Sep 23 15:49:15 2015
> @@ -105,7 +105,7 @@ protected:
>      static bool
>      AppleIsModuleObjCLibrary (const lldb::ModuleSP &module_sp);
>
> -    static enum ObjCRuntimeVersions
> +    static ObjCRuntimeVersions
>      GetObjCVersion (Process *process, lldb::ModuleSP &objc_module_sp);
>
>      void
>
>
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150923/733ea64f/attachment.html>


More information about the lldb-commits mailing list