Skip to content

C++

Linters

Linter Additional
cpplint
CPP_CPPLINT
GitHub stars
clang-format
CPP_CLANG_FORMAT
GitHub stars autofix

Linted files

  • File extensions:
    • .cpp
    • .h
    • .cc
    • .hpp
    • .cxx
    • .cu
    • .hxx
    • .c++
    • .hh
    • .h++
    • .cuh

Configuration in MegaLinter

Variable Description Default value
CPP_PRE_COMMANDS List of bash commands to run before the linters None
CPP_POST_COMMANDS List of bash commands to run after the linters None
CPP_FILTER_REGEX_INCLUDE Custom regex including filter
CPP_FILTER_REGEX_EXCLUDE Custom regex excluding filter