-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add --version flag with checks (#176)
- Loading branch information
1 parent
3d92804
commit d075d44
Showing
6 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# scip-clang ChangeLog | ||
|
||
## v0.0.1 (testing) | ||
|
||
- Symbols without hover docs will explicitly show "No documentation available". | ||
- Published binaries should work on Debian Buster and Ubuntu 18.04, | ||
instead of requiring Debian Bullseye / Ubuntu 20.04 or newer. | ||
|
||
## v0.0.0 (testing) | ||
|
||
- Initial release with code nav support for various | ||
language features like macros, #include pragmas, types, | ||
functions, methods, local variables etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Inputs: | ||
# NEW_VERSION should be a string M.N.P | ||
|
||
PROJECT_ROOT="$(dirname "${BASH_SOURCE[0]}")/.." | ||
cd "$PROJECT_ROOT" | ||
|
||
if ! grep -q "## v$NEW_VERSION" CHANGELOG.md; then | ||
echo "error: Missing CHANGELOG entry for $NEW_VERSION" | ||
echo "note: CHANGELOG entries are required for publishing releases" | ||
exit 1 | ||
fi | ||
|
||
if ! grep -q "#define VERSION \"$NEW_VERSION\"" indexer/Version.h; then | ||
echo "error: VERSION in Version.h doesn't match NEW_VERSION=$NEW_VERSION" | ||
exit 1 | ||
fi | ||
|
||
if ! grep -q "_LLVM_COMMIT" fetch_deps.bzl; then | ||
echo "error: Missing _LLVM_COMMIT in fetch_deps.bzl" | ||
exit 1 | ||
fi | ||
|
||
LLVM_COMMIT_STRING="$(grep "_LLVM_COMMIT = " fetch_deps.bzl | cut -d ' ' -f 3)" | ||
|
||
if ! grep -q "$LLVM_COMMIT_STRING" indexer/Version.h; then | ||
echo "info: Found LLVM_COMMIT $LLVM_COMMIT_STRING" | ||
echo "error: LLVM_COMMIT in Version.h doesn't match fetch_deps.bzl" | ||
exit 1 | ||
fi |