[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode e6f1a3c 237/496: More configurability for flych
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode e6f1a3c 237/496: More configurability for flycheck |
Date: |
Sun, 29 Aug 2021 11:33:43 -0400 (EDT) |
branch: elpa/swift-mode
commit e6f1a3cad80b44742212cf1339c2e8005ab73ef7
Author: Vince Broz <vince@broz.cc>
Commit: Vince Broz <vince@broz.cc>
More configurability for flycheck
---
swift-mode.el | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/swift-mode.el b/swift-mode.el
index 3c506b4..6121b0a 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -593,6 +593,23 @@
:type '(repeat (directory :tag "Include directory"))
:safe #'flycheck-string-list-p)
+ (flycheck-def-option-var flycheck-swift-cc-include-search-paths nil swift
+ "A list of include file search paths to pass to the Objective C
compiler"
+ :type '(repeat (directory :tag "Include directory"))
+ :safe #'flycheck-string-list-p)
+
+ (flycheck-def-option-var flycheck-swift-target "i386-apple-ios8.1" swift
+ "Target used by swift compiler"
+ :type '(choice (const :tag "Don't specify target" nil)
+ (string :tag "Build target"))
+ :safe #'stringp)
+
+ (flycheck-def-option-var flycheck-swift-import-objc-header nil swift
+ "Objective C header file to import, if any"
+ :type '(choice (const :tag "Don't specify objective C bridging header"
nil)
+ (string :tag "Objective C bridging header path"))
+ :safe #'stringp)
+
(flycheck-define-checker swift
"Flycheck plugin for for Apple's Swift programming language."
:command ("swift"
@@ -614,6 +631,12 @@
(eq (string-match ".#" path) nil)
(eq (string-match file path) nil)))
(file-expand-wildcards
flycheck-swift-linked-sources)))))
+ (option "-target" flycheck-swift-target)
+ (option "-import-objc-header"
flycheck-swift-import-objc-header)
+ (eval
+ (mapcan
+ #'(lambda (path) (list "-Xcc" (concat "-I" path)))
+ flycheck-swift-cc-include-search-paths))
"-primary-file" source)
:error-patterns
((error line-start (file-name) ":" line ":" column ": "
- [nongnu] elpa/swift-mode cac2884 185/496: Add lists to the "type" grammar, (continued)
- [nongnu] elpa/swift-mode cac2884 185/496: Add lists to the "type" grammar, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode adfe341 190/496: Add grammar for the protocol definitions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 20134ed 193/496: Use postive lookahead for declaration specifier lexer rule, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c2c3c01 199/496: Improve support for optional types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d6483e1 207/496: Add ?? to the lexer rule for operators, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9e6c538 210/496: Correct DECSPEC regex and lexer rule, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 2c67d92 213/496: Fix indentation of the closure arguments inside parentheses, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5a858c7 218/496: Improve indentation of the array and dictionary expressions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 195d040 227/496: Merge pull request #76 from ap4y/batch_smie_fixes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode dbf48a1 232/496: Merge pull request #90 from nathankot/flycheck-framework-search-paths, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e6f1a3c 237/496: More configurability for flycheck,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 3e8befa 238/496: Merge pull request #92 from apiology/more_flycheck_option_vars, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 31fb250 248/496: added elseguard to lexer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 071cd18 249/496: Merge pull request #100 from uk-ar/enable-pairing-for-curly-bracket, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7cefd8c 255/496: Fix token for generics, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c51eaf8 257/496: Fix token for ! & ?, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ce816a8 270/496: Fix backward-sexp test by adding brackets, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 85e05ea 271/496: Merge pull request #105 from uk-ar/fix-move-by-sexp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode befeb2a 017/496: Highlight bools and nil as constants, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 654d5e2 006/496: More work on font locking, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c4943a8 025/496: Add to auto-mode-alist, ELPA Syncer, 2021/08/29