File: PatchTidy.cmake

package info (click to toggle)
libsfml 3.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,704 kB
  • sloc: cpp: 52,754; ansic: 24,944; objc: 668; sh: 172; xml: 25; makefile: 18
file content (4 lines) | stat: -rw-r--r-- 424 bytes parent folder | download
1
2
3
4
# prevent clang-tidy from running on our dependencies by removing the entries from compile_commands.json
file(READ "${PROJECT_BINARY_DIR}/compile_commands.json" COMPILE_COMMANDS_JSON_CONTENTS)
string(REGEX REPLACE "(,\n)?{[^{]*\"output\": \"[^}]*_deps[^}]*}" "" COMPILE_COMMANDS_JSON_CONTENTS "${COMPILE_COMMANDS_JSON_CONTENTS}")
file(WRITE "${PROJECT_BINARY_DIR}/compile_commands.json" "${COMPILE_COMMANDS_JSON_CONTENTS}")