I want to run clang-tidy on windows on a project, based on rapidjson.
On windows, clang-tidy uses the clang-cl interface. Therefore, the following defines are set / unset:
__clang__ (set)
_MSC_VER (set)
_LIBCPP_VERSION (unset)
__GLIBCXX__ (unset)
This combination of defines is not supported by rapidjson yet. (rapidjson.h, section "C++11 features".
I hotfixed this issue by defining the RAPIDJSON_HAS_CXX11_RVALUE_REFS before including rapidjson:
I want to run clang-tidy on windows on a project, based on rapidjson.
On windows, clang-tidy uses the clang-cl interface. Therefore, the following defines are set / unset:
This combination of defines is not supported by rapidjson yet. (rapidjson.h, section "C++11 features". I hotfixed this issue by defining the RAPIDJSON_HAS_CXX11_RVALUE_REFS before including rapidjson: