[vim/vim] Avoid using C++ keyword `class` as member variable name (PR #19016)

7 views
Skip to first unread message

Wei Tang

unread,
Dec 25, 2025, 9:08:51 AM (19 hours ago) Dec 25
to vim/vim, Subscribed

Problem: A recent commit introduced a member variable named class in
the exarg structure, which conflicts with the C++ keyword
class. This causes compilation issues on Windows when VIM
is compiled with OLE enabled, as "if_ole.cpp" cannot compile
due to the keyword conflict.

Solution: Rename the member variable of exarg from class to cclass.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19016

Commit Summary

  • aea861a Avoid using C++ keyword `class` as member variable name

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19016@github.com>

Yegappan Lakshmanan

unread,
Dec 25, 2025, 10:39:34 AM (18 hours ago) Dec 25
to vim/vim, Subscribed

@yegappan requested changes on this pull request.

The precedence in other places is to use an abbreviation of the structure name as the prefix. So can you use the prefix "ea_" instead of just "c"?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19016/review/3612438315@github.com>

Wei Tang

unread,
Dec 25, 2025, 8:49:46 PM (7 hours ago) Dec 25
to vim/vim, Push

@Fuzzier pushed 1 commit.

  • d0b5794 Avoid using C++ keyword `class` as member variable name


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19016/before/aea861ab744f4673bee3891a07ed95b724472f87/after/d0b579475520215aa47c6401d89dc0db031c46f4@github.com>

Wei Tang

unread,
Dec 25, 2025, 8:52:23 PM (7 hours ago) Dec 25
to vim/vim, Subscribed
Fuzzier left a comment (vim/vim#19016)

The precedence in other places is to use an abbreviation of the structure name as the prefix. So can you use the prefix "ea_" instead of just "c"?

Renamed cclass to ea_class to match the naming convention.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19016/c3691911820@github.com>

Reply all
Reply to author
Forward
0 new messages