Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for cpplint.py extensions flag #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion flycheck-google-cpplint.el
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ root=subdir
ignored.

Examples:
Assuing that src/.git exists, the header guard CPP variables for
Assuming that src/.git exists, the header guard CPP variables for
src/chrome/browser/ui/browser.h are:

No flag => CHROME_BROWSER_UI_BROWSER_H_
Expand All @@ -116,6 +116,19 @@ linelength=digits
:safe #'stringp
:package-version '(flycheck . "0.18"))

(flycheck-def-option-var flycheck-googlelint-extensions nil c/c++-googlelint
"The valid file extensions passed to the Google C++ lint.

extensions=x,y,z
This is a comma-separated list with allowed file extensions. The default value is
`cc, h, cpp, cu, cuh'.

Examples:
--extensions=cc,h,cpp,cu,cuh"
:type '(string :tag "Extensions")
:safe #'stringp
:package-version '(flycheck . "0.23"))

(flycheck-define-checker c/c++-googlelint
"A C/C++ style checker using google cpplint.

Expand All @@ -127,6 +140,7 @@ See URL
flycheck-option-comma-separated-list)
(option "--root=" flycheck-googlelint-root concat)
(option "--linelength=" flycheck-googlelint-linelength concat)
(option "--extensions=" flycheck-googlelint-extensions concat)
source-original)
:error-patterns
((warning line-start (file-name) ":" line ": " (message) line-end))
Expand Down