annotate runtime/ftplugin/cpp.vim @ 31186:433e92a6efb0
v9.0.0927
patch 9.0.0927: Coverity warns for using a NULL pointer
Commit: https://github.com/vim/vim/commit/96cbbe29debba25d7eec8d01955c5ac01f5c420d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 23 11:36:22 2022 +0000
patch 9.0.0927: Coverity warns for using a NULL pointer
Problem: Coverity warns for using a NULL pointer.
Solution: Check for memory allocaion failure.
author |
Bram Moolenaar <Bram@vim.org> |
date |
Wed, 23 Nov 2022 12:45:05 +0100 |
parents |
3a1ed539ae2a |
children |
4027cefc2aab |
rev |
line source |
7
|
1 " Vim filetype plugin file
|
|
2 " Language: C++
|
|
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
|
21499
|
4 " Last Change: 2020 Jul 26
|
7
|
5
|
|
6 " Only do this when not done yet for this buffer
|
|
7 if exists("b:did_ftplugin")
|
|
8 finish
|
|
9 endif
|
|
10
|
21499
|
11 " Behaves mostly just like C
|
7
|
12 runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim
|
21499
|
13
|
|
14 " C++ uses templates with <things>
|
|
15 " Disabled, because it gives an error for typing an unmatched ">".
|
|
16 " set matchpairs+=<:>
|
|
17 " let b:undo_ftplugin ..= ' | setl matchpairs<'
|