aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2017-07-24 14:15:22 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2017-07-24 13:24:45 +0000
commit15793d33186e521cc633505622b44ed71e78dfe5 (patch)
tree03182ccc5f14d8b1335175c366494b9656d41011 /scripts
parent6b2d6e7965aedbb71856b660883cc7676a78faf0 (diff)
Clang: Make clangCompleteAt.sh work with standard headers
"clang -cc1" is the frontend only and as such it does not have any include paths set. Use -Xclang <arg> instead. [1] https://clang.llvm.org/docs/FAQ.html#id2 Change-Id: I372601cae5c672562b63fa07ed9e638e984fdd58 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/clangCompleteAt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/clangCompleteAt.sh b/scripts/clangCompleteAt.sh
index e80fbd623a..18f225a920 100755
--- a/scripts/clangCompleteAt.sh
+++ b/scripts/clangCompleteAt.sh
@@ -94,7 +94,7 @@ runCodeCompletion()
if [ -n "${CINDEXTEST_EXEC}" ]; then
command="${CINDEXTEST_EXEC} -code-completion-at=${FILE}:${LINE}:${COLUMN} ${FILE}"
else
- command="${CLANG_EXEC} -cc1 -code-completion-at ${FILE}:${LINE}:${COLUMN} ${FILE}"
+ command="${CLANG_EXEC} -fsyntax-only -Xclang -code-completion-at -Xclang ${FILE}:${LINE}:${COLUMN} ${FILE}"
fi
echo "Command: $command"
eval $command