diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 4fffe6622074f183d92663d7b9ce06f609bc0805..cc807d43ed4cfa238283566f8a8fb9bf7f1c12b8 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -44,7 +44,6 @@ set(MILVUS_VERSION "${GIT_BRANCH_NAME}") string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]" MILVUS_VERSION "${MILVUS_VERSION}") find_package(ClangTools) -set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(BUILD_SUPPORT_DIR "${CMAKE_SOURCE_DIR}/build-support") if(CMAKE_BUILD_TYPE STREQUAL "Release") @@ -57,6 +56,9 @@ message(STATUS "Build type = ${BUILD_TYPE}") project(milvus VERSION "${MILVUS_VERSION}") project(milvus_engine LANGUAGES CUDA CXX) +unset(CMAKE_EXPORT_COMPILE_COMMANDS CACHE) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + set(MILVUS_VERSION_MAJOR "${milvus_VERSION_MAJOR}") set(MILVUS_VERSION_MINOR "${milvus_VERSION_MINOR}") set(MILVUS_VERSION_PATCH "${milvus_VERSION_PATCH}") diff --git a/cpp/build-support/lint_exclusions.txt b/cpp/build-support/lint_exclusions.txt index 3ae6878c43764ed112254ed9b554cce669532cb2..f08664a1a9b6cf578525a7e7fc3192a7a1085ce4 100644 --- a/cpp/build-support/lint_exclusions.txt +++ b/cpp/build-support/lint_exclusions.txt @@ -3,4 +3,5 @@ *cmake_build* *src/thirdparty* *src/core/thirdparty* -*src/grpc* \ No newline at end of file +*src/grpc* +*easylogging++* \ No newline at end of file diff --git a/cpp/build-support/run_cpplint.py b/cpp/build-support/run_cpplint.py index 2a33748279524a52a073426bf256a03b1c53a108..98c417085834cf6eb4e7ec2482e32dd985ee2afc 100755 --- a/cpp/build-support/run_cpplint.py +++ b/cpp/build-support/run_cpplint.py @@ -84,7 +84,7 @@ if __name__ == "__main__": cmd = [ arguments.cpplint_binary, '--verbose=2', - '--linelength=90', + '--linelength=120', '--filter=' + ','.join(_filters) ] if (arguments.cpplint_binary.endswith('.py') and