Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unknown directive warnings in c++-mode/class11 #495

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions snippets/c++-mode/class11
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
# group: c++11
# uuid: d7c41f87-9b8a-479d-bb12-89f4cbdd46a7
# contributor: Ved Vyas
# desc: Snippet for C++11 classes based on c++-mode/class. Allows for Rule of
# [0, All]. A choice between ";", " = default;", and " = delete;" is presented
# for each method. The methods and some of the optional keywords/specifiers are
# exposed as fields that users can easily skip-and-clear.
# Hackish query-replace-regexp to renumber non-mirror fields in the region
# between public and protected (can use N as a field number in the snippet):
# \${[0-9N]*:\([^\$]\) -> ${\,(+ 2 \#):\1
# References:
# 1. http://en.cppreference.com/w/cpp/language/rule_of_three#Rule_of_five
# 2. https://en.wikipedia.org/wiki/Rule_of_three_%28C%2B%2B_programming%29#Example_in_C.2B.2B
# 3. http://stackoverflow.com/a/4782927
#
## Snippet for C++11 classes based on c++-mode/class. Allows for Rule of
## [0, All]. A choice between ";", " = default;", and " = delete;" is presented
## for each method. The methods and some of the optional keywords/specifiers are
## exposed as fields that users can easily skip-and-clear.
## Hackish query-replace-regexp to renumber non-mirror fields in the region
## between public and protected (can use N as a field number in the snippet):
## \${[0-9N]*:\([^\$]\) -> ${\,(+ 2 \#):\1
##
## References
## 1. http://en.cppreference.com/w/cpp/language/rule_of_three#Rule_of_five
## 2. https://en.wikipedia.org/wiki/Rule_of_three_%28C%2B%2B_programming%29#Example_in_C.2B.2B
## 3. http://stackoverflow.com/a/4782927
# --
class ${1:Name}
{
Expand Down
Loading