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
base: master
from

Conversation

Projects
None yet
2 participants
@Claymore
Contributor

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.

Set cppcheck -x param based on major-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

This comment has been minimized.

Contributor

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