summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-22Bring in compatibility shims for CommandLine from upstreamHEADmastermainSorin Basca
In order to support building with JDK21, Kythe needs to be able to deal with the move of CommandLine from com.sun.tools.javac.main to jdk.internal.opt, This change brings in the service loader infrastructure that can deal with this. Until we switch to JDK21 we will use the fallback (reflective) mechanism. Once JDK21 is in place, we can also enable the 21 compatibility implementation. Bug: 313924276 Test: prebuilts/build-tools/build-prebuilts.sh --skip-go --skip-asan \ --skip-soong-tests --resume Test: java --add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \ --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \ --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \ --add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \ --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \ --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \ --add-exports=jdk.internal.opt/jdk.internal.opt=ALL-UNNAMED \ -jar ./out/soong/dist-common/framework/javac_extractor.jar \ # Using JDK11, JDK17 and JDK21 Change-Id: I10bae91e1203b919b6ca3012b208c01ea904ac76
2024-01-10Remove uses of libabsl_headers.Krzysztof Kosiński
These modules already have dependencies on libabsl, which exposes the same set of headers. Bug: 246681282 Test: presubmit Change-Id: I5f9302943360261ee5bcb6d7f87f884287c36345
2023-09-05Update target names for RE2 and ABSL.Krzysztof Kosiński
Bug: 279548314 Test: presubmit Change-Id: I2f19aa7be864db98ddf6861c5bf17476a8254460
2023-03-06Revert^2 "Cherrypick upstream change to fix build."Yi Kong
af58a1a6d90dceb795f8975b75cf3769b0318575 Change-Id: I848a08fc5455dea04ee77ad3c62ec1d3d5d072f9
2023-03-02Revert "Cherrypick upstream change to fix build."Yi Kong
Revert submission 2462733-fix-clang-tools-r487747 Rollback compiler update Reverted changes: /q/submissionid:2462733-fix-clang-tools-r487747 Change-Id: Ifc66c521ce977931c021f209e39557437572638c
2023-03-01Cherrypick upstream change to fix build.Shahms King
This cherrypicks the following upstream change to fix build with the latest Clang API: 34a4932e42b7cc853eff38a43ee009a8d101f488 chore: update LLVM (#5483) Test: presubmit Bug: 264965700 Change-Id: Id1bc47a52214708784150a9cc4a326e41aa87582
2022-11-15Upgrade Kythe to v0.0.60.Krzysztof Kosiński
Test: presubmit Change-Id: I36006ef55385d0f4bf6544f9b7a0179aea90a2ff
2022-11-09Replace google::protobuf::string with std::string.Krzysztof Kosiński
google::protobuf::string has been removed in recent releases of Protocol Buffers library. Bug: 203713560 Test: OUT_DIR=out prebuilts/clang-tools/build-prebuilts.sh Change-Id: I813648da19aa6e892a81a3f326cd42257f162657
2022-10-17[UPSTREAM] chore: update LLVM (#5254)zrlk
Bug: http://b/241011085 Cherry-pick change to build kythe with latest LLVM. Change-Id: Ifcbc3d80f430a275db074c115b9fca2fcb408e41 (cherry picked from commit 6a1baed2f889a36bb25e3f4429fd14016ef5cf3b)
2022-09-19Merge "[OWNERS] Add android llvm team to OWNERS"Treehugger Robot
2022-09-19Merge "Use gson built from source"Treehugger Robot
2022-09-19[OWNERS] Add android llvm team to OWNERSPirama Arumuga Nainar
The android llvm team upgrades the clang/llvm headers used to build kythe. Adding the team to OWNERS for flexibility during these upgrades. Test: N/A Change-Id: I543e11ae8e2cc8490444107d6353f71ec881f9db
2022-09-19[UPSTREAM] chore: change how preprocessor_utils iterates tokens (#5214)Shahms King
Bug: 244486343 Test: presubmit Change-Id: I0a8f18a5f2da0ea722d1d53110d3db59a7cdbd38 (cherry picked from commit 15992735b55764e2e502e8ac81f03b32f7653c04)
2022-09-19Use gson built from sourceColin Cross
Bug: 243950468 Test: prebuilts/build-tools/build-prebuilts.sh Change-Id: I74d0c3b703bbdc6adb4c05e3f68269ad63f3282a
2022-08-16Accommodate JDK17Sasha Smundak
The signatures of com.sun.tools.javac.main.CommandLine.parse and com.sun.tools.javac.main.Arguments.init methods changed between JDK14 and JDK17, call these methods via reflection to accomodadte both. Bug: 240421813 Test: build java extractor and use it Change-Id: I5db0a22bf9f837826f234e228f9652d422d94f20
2022-08-01release: v0.0.60 (#5335)Wyatt Calandro
* release: v0.0.60 * chore: clean up RELEASES.md
2022-08-01chore: fix bazel extractor dockerfile (#5334)Wyatt Calandro
2022-08-01chore: use external aquery-based compilation db (#5333)Shahms King
2022-07-29chore(rust_common): bump version to 2022-07-27 and fix variable (#5332)Wyatt Calandro
2022-07-28chore(rust_common): manually configure the Rust protobuf toolchain (#5330)Wyatt Calandro
* chore(rust_common): manually configure the Rust protobuf toolchain * fix: linting issues
2022-07-27fix(rust_indexer): set the VName root on emitted Rust anchors (#5329)Wyatt Calandro
2022-07-27chore: bump rules_rust to v0.8.1 (#5328)Wyatt Calandro
2022-07-27feat(rust_indexer): emit proper xrefs to files generated by dependencies (#5326)Wyatt Calandro
* feat(rust_common): migrate to crate_universe from cargo-raze * feat(rust_extractor): support incoming generated files in the Rust extractor * feat(rust_indexer): support xrefs to incoming generated files * fix: remove comment * fix: remove debug logs * fix: more fixes * fix: exec -> target
2022-07-25feat(cxx_indexer): record full signatures in a separate file (#5323)zrlk
* feat(cxx_indexer): record full signatures in a separate file This makes it easier to debug production issues. Because signatures are based on structure, being able to go from a hash back to the original string turns out to be very useful.
2022-07-20feat(cxx_indexer): implement directory traversal in indexer VFS (#5325)Shahms King
* feat(cxx_indexer): implement directory traversal in indexer VFS * chore: report file not found from dir_begin
2022-07-20feat(rust_common): migrate to crate_universe from cargo-raze (#5324)Wyatt Calandro
2022-07-13chore(rust_common): upgrade rules_rust to v0.7.0 (#5321)Wyatt Calandro
2022-07-01feat(jvm_extractor): assign a corpus to compilation units (#5320)Justin Buchanan
This now uses the same logic as the java extractor: https://github.com/kythe/kythe/blob/4aff6ac52c27de4d306b73982b343d6dcae4c2a7/kythe/java/com/google/devtools/kythe/extractors/java/JavaCompilationUnitExtractor.java#L297-L313
2022-06-30chore(go): adjust verifier goal regex to be compatible with latest gofmt (#5318)Justin Buchanan
Our verifier assertions previously had a prefix of "//-", which the latest gofmt changes to "// -" in some cases. This change applies gofmt to all go indexer testdata files and adjusts the --goal_regex to accept both prefix styles.
2022-06-30chore(go): add doc comment for `GolangCorpus` (#5317)Justin Buchanan
2022-06-29chore: gofmt with 1.19 (#5316)Cody Schroeder
2022-06-29feat(go_indexer): add --override_stdlib_corpus flag (#5314)Justin Buchanan
Problem: we index the go std library with the "google3/golib" corpus and the rest of go code with "google3". We want the cross-references to work between these, so std library elements in both need to have the same corpus.
2022-06-23Generate compilation database for workspace (#5315)Mai Hussien
* Generate compilation database for workspace * Use bash arrays to hold the queried targets * Use mapfile to fix Lint check
2022-06-21chore(rust_common): sync rustfmt.toml with internal version (#5312)Wyatt Calandro
2022-06-21feat(tooling): add --workspace_uri to kythe decor cmd (#5313)Cody Schroeder
2022-06-21chore: add toolchain_util.bzl to facilitate imports (#5311)Shahms King
2022-06-16feat(typescript_indexer): emit `field` subkind fact for ↵Mikita Belahlazau
class/interface/ojbect literal properties (#5293) Co-authored-by: Shahms King <shahms@google.com> Co-authored-by: zrlk <zrlk@users.noreply.github.com>
2022-06-16fix(java_indexer): guard against NPE in ImmutableList (#5310)Cody Schroeder
2022-06-15fix(proto): fix problematic field name (#5309)Wyatt Calandro
2022-06-15feat(proto): add a proto field to signify whether a file is protected (#5308)Wyatt Calandro
* feat(proto): add a proto field to signify whether a file is protected * fix: add comment
2022-06-13fix(textproto): workaround upstream proto path bug (#5307)Shahms King
* fix(textproto): workaround upstream proto path bug * chore: resolve comments
2022-06-10fix(rust_extractor): find the analysis file based on crate name (#5306)Wyatt Calandro
2022-06-09feat(java extractor): use default value if corpus is ambiguous (#5305)Justin Buchanan
Before this change, java CUs don't receive a corpus if the required_inputs are not all in the same corpus. With this change, instead of assigning the empty corpus, the CU is assigned a corpus from the KYTHE_CORPUS environment variable.
2022-06-09chore(java): fix lint error (#5304)Justin Buchanan
2022-06-09feat(java analyzer): log error when CU VName has empty corpus (#5303)Justin Buchanan
2022-06-09chore(java): remove unused deprecated methods from JvmGraph (#5302)Justin Buchanan
2022-06-09chore: use SerializeToString instead of explicit Streams (#5301)Shahms King
2022-06-08Add a missing glob to release.BUILD (#5300)Eric Chang
Without the glob, the * doesn't actually expand.
2022-06-07chore: remove unused entry from load statement (#5299)Shahms King
2022-06-07chore: retain ability to pass the indexer binary for c++ indexer tests (#5298)Shahms King
* chore: restore ability to pass indexer label to cc_indexer_test * fix(cxx_tests): properly pass test indexer runfiles