mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-24 22:00:27 +00:00
add a test for clang-tidy
This commit is contained in:
parent
d3c0a47536
commit
32987bf0d0
13
debian/qualify-clang.sh
vendored
13
debian/qualify-clang.sh
vendored
@ -67,6 +67,19 @@ if ! grep -q -E "scan-build: 0 bugs found." foo.log; then
|
|||||||
fi
|
fi
|
||||||
rm -rf scan-build
|
rm -rf scan-build
|
||||||
|
|
||||||
|
echo 'namespace mozilla {
|
||||||
|
namespace dom {
|
||||||
|
void foo();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
' > foo.cpp
|
||||||
|
clang-tidy-$VERSION -checks='modernize-concat-nested-namespaces' foo.cpp -extra-arg=-std=c++17 &> foo.log
|
||||||
|
if ! grep -q "nested namespaces can " foo.log; then
|
||||||
|
echo "Clang-tidy didn't detect the issue"
|
||||||
|
cat foo.log
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Testing clang-$VERSION ..."
|
echo "Testing clang-$VERSION ..."
|
||||||
|
|
||||||
rm -f foo.log
|
rm -f foo.log
|
||||||
|
Loading…
Reference in New Issue
Block a user