emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode dbf48a1 232/496: Merge pull request #90 from na


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode dbf48a1 232/496: Merge pull request #90 from nathankot/flycheck-framework-search-paths
Date: Sun, 29 Aug 2021 11:33:42 -0400 (EDT)

branch: elpa/swift-mode
commit dbf48a1878563b3fa24b57cd4f3868cedb9fec36
Merge: 4a27477 68a3a29
Author: Arthur Evstifeev <mail@ap4y.me>
Commit: Arthur Evstifeev <mail@ap4y.me>

    Merge pull request #90 from nathankot/flycheck-framework-search-paths
    
    Support for choosing framework search paths in flycheck.
---
 swift-mode.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/swift-mode.el b/swift-mode.el
index ae5485f..364cb89 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -583,11 +583,17 @@
                       (string :tag "Linked Sources"))
        :safe #'stringp)
 
+     (flycheck-def-option-var flycheck-swift-framework-search-paths nil swift
+       "A list of framework search paths"
+       :type '(repeat (directory :tag "Include directory"))
+       :safe #'flycheck-string-list-p)
+
      (flycheck-define-checker swift
        "Flycheck plugin for for Apple's Swift programming language."
        :command ("swift"
                  "-frontend" "-parse"
                  (option "-sdk" flycheck-swift-sdk-path)
+                 (option-list "-F" flycheck-swift-framework-search-paths)
                  ;; Swift compiler will complain about redeclaration
                  ;; if we will include original file along with
                  ;; temporary source file created by flycheck.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]