Update C++ namespace snippet to match clang-format
New snippet outputs this
```cpp
namespace {
} // namespace
```
instead of
```cpp
namespace {
} // anonymous
```
and this
```cpp
namespace foo {
} // namespace foo
```
instead of
```cpp
namespace foo {
} // foo
```
This commit is contained in:
parent
dda49e02f4
commit
d5ed558d0c
@ -38,7 +38,7 @@ endsnippet
|
||||
snippet namespace "Named or anonymous namespace"
|
||||
namespace $1${1/(\w+)/ /}{
|
||||
$0
|
||||
} // ${1/(\w*)/(?1:$1:anonymous)/}
|
||||
} // namespace${1/(\w*)/(?1: $1:)/}
|
||||
endsnippet
|
||||
|
||||
snippet const_cast "Const cast" i
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user