Commit 91bc3381 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

clang-tools: handle -cxx-isystem in wrapper

The libcxx-cxxflags file uses -cxx-isystem instead of -isystem for C++
include paths. Without handling this flag, the CPLUS_INCLUDE_PATH was
not being set correctly, causing clang-tidy to fail finding standard
library headers like <iostream> and <cstring>.
parent fbe3ece6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ buildcpath() {
  local path after
  while (( $# )); do
    case $1 in
        -isystem)
        -isystem|-cxx-isystem)
            shift
            path=$path${path:+':'}$1
            ;;