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
e7c20a3cc5
commit
456e52467a
@ -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