]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(iar): Add iar compiler plugin
authorAndrey Starodoubtsev <andrey.starodoubtsev@gehealthcare.com>
Fri, 24 Jul 2026 20:00:13 +0000 (20:00 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 24 Jul 2026 20:00:13 +0000 (20:00 +0000)
closes: #20830

Signed-off-by: Andrey Starodoubtsev <andrey.starodoubtsev@gehealthcare.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/iar.vim [new file with mode: 0644]

diff --git a/runtime/compiler/iar.vim b/runtime/compiler/iar.vim
new file mode 100644 (file)
index 0000000..cd479b1
--- /dev/null
@@ -0,0 +1,32 @@
+" Vim compiler file
+" Compiler: IAR Systems C/C++ Compiler
+
+if exists("current_compiler")
+  finish
+endif
+let current_compiler = "iar"
+
+let s:cpo_save = &cpo
+set cpo&vim
+
+"   abc;
+"   ^
+" "/tmp/test.c",3  Error[Pe077]: this
+"           declaration has no storage class or type specifier
+
+" Error[Li005]: no definition for "Foo::Foo(unsigned shor
+"           t, unsigned short, unsigned int, char const *)"
+"           [referenced from Bar.o(libBar.a)]
+
+CompilerSet errorformat=
+      \%A\ \ %p^,
+      \%C\"%f\"\\\,%l\ \ Remark[%*[^]]]:\ %m,
+      \%C\"%f\"\\\,%l\ \ %tarning[%*[^]]]:\ %m,
+      \%C\"%f\"\\\,%l\ \ %trror[%*[^]]]:\ %m,
+      \%C\"%f\"\\\,%l\ \ Fatal\ %trror[%*[^]]]:\ %m,
+      \%EInternal\ error:\ %m,
+      \%EError[%*[^]]]:\ %m,
+      \%C%\\s%\\+%m,
+
+let &cpo = s:cpo_save
+unlet s:cpo_save