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

Set cppcheck -x param based on major-mode #909

Closed
wants to merge 1 commit into from

Conversation

@Claymore
Copy link
Contributor

@Claymore Claymore commented Mar 16, 2016

cppcheck treats a header file as a C header file by default. We can make
it recognize C++ header files with -x command line parameter so we set
up the parameter to c++ when we visit a C++ file in c++-mode.

cppcheck treats a header file as a C header file by default. We can make
it recognize C++ header files with `-x` command line parameter so we set
up the parameter to `c++` when we visit a C++ file in c++-mode.
@lunaryorn
Copy link
Contributor

@lunaryorn lunaryorn commented Mar 17, 2016

@Claymore Thank you very much for this change, cherry picked onto master 👏 👍 ☺️

@Claymore Claymore deleted the Claymore:cppcheck-cpp-headers branch Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants