Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Unified Diff: tools/clang/plugins/tests/test.sh

Issue 597863002: Update plugin to handle new style rules for virtual annotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add copyright blurb Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/clang/plugins/tests/test.sh
diff --git a/tools/clang/plugins/tests/test.sh b/tools/clang/plugins/tests/test.sh
index 7946325c539dd36ea9c8c9b35a9cbbaae8c0af48..9f63f7affca77968198bf4bf1dca63214fdda021 100755
--- a/tools/clang/plugins/tests/test.sh
+++ b/tools/clang/plugins/tests/test.sh
@@ -33,7 +33,7 @@ do_testcase() {
flags="${flags} -isysroot $(xcrun --show-sdk-path) -stdlib=libstdc++"
fi
- local output="$("${CLANG_PATH}" -c -Wno-c++11-extensions \
+ local output="$("${CLANG_PATH}" -fsyntax-only -Wno-c++11-extensions \
-Xclang -load -Xclang "${PLUGIN_PATH}" \
-Xclang -add-plugin -Xclang find-bad-constructs ${flags} ${1} 2>&1)"
local diffout="$(echo "${output}" | diff - "${2}")"
@@ -44,6 +44,10 @@ do_testcase() {
echo "FAIL: ${1}"
echo "Output of compiler:"
echo "${output}"
+ cat > ${2}-actual << EOF
+${output}
+EOF
+
echo "Expected output:"
cat "${2}"
echo
« no previous file with comments | « tools/clang/plugins/tests/overridden_methods.txt ('k') | tools/clang/plugins/tests/virtual_base_method_also_final.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698