Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
1125 matches across 12 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | utils/tree_sitter/test_runner.cpp | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | docs/design/generics/appendix-rewrite-constraints.md | 541 | interface B { |
| LOW | docs/design/generics/appendix-rewrite-constraints.md | 621 | } |
| LOW | docs/design/generics/details.md | 3121 | // - argument has type `N.E.N` |
| LOW | docs/design/generics/details.md | 5441 | // Definition of the previously declared class type |
| LOW | docs/design/generics/details.md | 5461 | |
| LOW | docs/design/expressions/member_access.md | 701 | fn AddTwoIntegers(a: Integer, b: Integer) -> Integer { |
| LOW | testing/fuzzing/libfuzzer.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/file_test/test_file.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/file_test/test_file.cpp | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/file_test/test_file.cpp | 21 | |
| LOW | testing/file_test/autoupdate.cpp | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/file_test/file_test_base.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/file_test/file_test_base.h | 21 | #include "testing/file_test/autoupdate.h" |
| LOW | testing/file_test/file_test_base.h | 41 | // - Each file has a `fail_` prefix if !per_file_success[i].second. |
| LOW | testing/file_test/file_test_base.h | 61 | // content written to `output_stream` and `error_stream`. Children should use |
| LOW | testing/file_test/file_test_base.h | 141 | // The test fixture name. |
| LOW | testing/file_test/file_test_base.cpp | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/file_test/file_test_base.cpp | 21 | |
| LOW | testing/file_test/file_test_base.cpp | 41 | #include "common/check.h" |
| LOW | testing/file_test/file_test_base_test.cpp | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/file_test/test_file_test.cpp | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/file_test/run_test.cpp | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/file_test/autoupdate.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/base/file_helpers.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/base/file_helpers.h | 21 | |
| LOW | testing/base/unified_diff_matcher.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/base/global_exe_path.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | testing/base/capture_std_streams.cpp | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | common/ostream.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | common/ostream.h | 81 | |
| LOW | common/exe_path.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | common/filesystem.h | 1 | // Part of the Carbon Language project, under the Apache License v2.0 with LLVM |
| LOW | common/filesystem.h | 21 | #include "common/check.h" |
| LOW | common/filesystem.h | 41 | // reasonable Windows implementation is possible. |
| LOW | common/filesystem.h | 61 | // |
| LOW | common/filesystem.h | 81 | // The different creation options available when opening a file or directory. |
| LOW | common/filesystem.h | 161 | // pattern that facilitates octal modeling: |
| LOW | common/filesystem.h | 221 | |
| LOW | common/filesystem.h | 341 | // |
| LOW | common/filesystem.h | 381 | // |
| LOW | common/filesystem.h | 401 | // inability to finish writing. |
| LOW | common/filesystem.h | 421 | // |
| LOW | common/filesystem.h | 441 | // and this routine will block and attempt to acquire the requested lock for a |
| LOW | common/filesystem.h | 461 | explicit FileRefBase(int fd) : fd_(fd) {} |
| LOW | common/filesystem.h | 481 | // result in unnoticed data loss. |
| LOW | common/filesystem.h | 501 | }; |
| LOW | common/filesystem.h | 561 | // This extends the `FileRef` API to provide ownership of the file handle. Most |
| LOW | common/filesystem.h | 601 | // |
| LOW | common/filesystem.h | 621 | }; |
| LOW | common/filesystem.h | 661 | // Begin reading the entries in a directory. |
| LOW | common/filesystem.h | 681 | -> ErrorOr<llvm::SmallVector<std::filesystem::path>, FdError>; |
| LOW | common/filesystem.h | 721 | // Like the `stat` system call on Unix-like platforms, this will follow any |
| LOW | common/filesystem.h | 741 | |
| LOW | common/filesystem.h | 781 | -> ErrorOr<WriteFile, PathError>; |
| LOW | common/filesystem.h | 801 | // component can be created by the call to this routine. |
| LOW | common/filesystem.h | 821 | // permissions restrictive and not include any group access. |
| LOW | common/filesystem.h | 841 | // This is a convenience wrapper for opening the path, creating it according |
| LOW | common/filesystem.h | 861 | -> ErrorOr<Success, PathError>; |
| LOW | common/filesystem.h | 881 | // `target.c_str()`, ignoring everything past any embedded null bytes. |
| 916 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | website/prebuild.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | …kills/summarize_testdata_changes/scripts/parse_diff.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | examples/bazel_test_runner.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | examples/bazel/update_module_to_nightly.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | bazel/cc_toolchains/cc_tools_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | bazel/version/gen_tmpl.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | bazel/check_deps/check_non_test_cc_deps.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | bazel/check_deps/update_roots.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | github_tools/check_dependent_pr_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | github_tools/check_dependent_pr.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | github_tools/github_helpers.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | github_tools/pr_comments_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | github_tools/pr_comments.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | github_tools/github_helpers_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/source_stats.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/bazel_mod_deps.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/check_sha_filenames.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/run_buildifier.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/check_header_guards.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/target_determinator.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/query_module_versions.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/forbid_llvm_googletest.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/fix_cc_deps.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/run_bazel.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/no_op_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/create_compdb.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/check_build_graph.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/run_bazelisk.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/workspace_status.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/scripts_utils.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/lldbinit.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/run_buildozer.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/bench_runner.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | scripts/calculate_release_shas.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | proposals/p000555-operator-precedence/figures.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | proposals/scripts/new_proposal_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | proposals/scripts/utils_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | proposals/scripts/check_proposal_names_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | proposals/scripts/utils.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | proposals/scripts/new_proposal.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | proposals/scripts/check_proposal_names.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | toolchain/autoupdate_testdata.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | toolchain/install/install_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | toolchain/install/cc_tools_wrapper_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | toolchain/install/toolchain_tar_test.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | toolchain/runtimes/configure_cmake_file_impl.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| HIGH | toolchain/diagnostics/check_diagnostics.py | 0 | part of the carbon language project, under the apache license v2.0 with llvm exceptions. see /license for license inform |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | common/filesystem.h | 430 | // file's size to the provided string size. Essentially, this function |
| MEDIUM | common/hashing_benchmark.cpp | 143 | // When using random sizes, we leverage `i` which is guaranteed to range |
| MEDIUM | common/raw_hashtable.h | 1520 | // growth, but we know we'll find an empty slot, so leverage that. |
| MEDIUM | common/raw_hashtable_metadata_group.h | 832 | // This algorithm only works for matching *present* bytes. We leverage the |
| MEDIUM | common/hashing.h | 924 | // Essentially the same technique used for dynamically sized byte sequences |
| MEDIUM | common/hashing.h | 1016 | // latency over a more robust approach. Doing another mix with the size (the |
| LOW | scripts/fix_cc_deps.py | 110 | # Ignore the version, just use the repo name. |
| MEDIUM | .github/workflows/auto_label_prs.yaml | 61 | # convenience. Essentially, this is everything we intend to ship as |
| MEDIUM | proposals/scripts/utils.py | 13 | """Returns a robust slug of the title.""" |
| MEDIUM | toolchain/driver/compile_subcommand.cpp | 132 | // Instead of controlling this with more nuanced flags, we |
| MEDIUM | toolchain/driver/runtimes_cache_test.cpp | 150 | // be robust against this, but it isn't important *how* the fallback occurs, |
| MEDIUM | toolchain/parse/tree.h | 296 | // While we don't want users to directly leverage the index of `NodeId` for |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | github_tools/check_dependent_pr_test.py | 90 | def test_process_pr_no_overlap(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 110 | def test_process_pr_with_overlap(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 133 | def test_process_pr_dependencies_merged(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 157 | def test_process_pr_dependency_got_new_commits(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 184 | def test_process_pr_non_coherent_prefix(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 204 | def test_process_pr_overlap_only_on_head_ref(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 227 | def test_process_pr_scanning_no_add(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 248 | def test_process_pr_no_changes_needed(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 270 | def test_process_pr_invalid_marker(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 296 | def test_process_pr_hidden_comment(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 326 | def test_process_pr_sticky_first_commit(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 352 | def test_process_pr_rebase_first_commit(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 378 | def test_process_pr_fallback_no_independent_commit(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 404 | def test_process_pr_sequence_failure(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 424 | def test_process_pr_no_overlap_different_commits(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 444 | def test_process_pr_no_unique_commit(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 464 | def test_process_pr_multiple_non_overlapping_commits(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 486 | def test_always_sets_status_check_success(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 505 | def test_always_sets_status_check_pending(self) -> None: |
| LOW | github_tools/check_dependent_pr_test.py | 524 | def test_process_pr_sibling_prs(self) -> None: |
| LOW | github_tools/check_dependent_pr.py | 189 | def _parse_and_validate_state( |
| LOW | github_tools/pr_comments_test.py | 22 | def test_format_comment_short(self): |
| LOW | github_tools/pr_comments_test.py | 257 | def test_accumulate_pr_comment(self): |
| LOW | github_tools/github_helpers_test.py | 93 | def test_execute_and_paginate_empty(self): |
| LOW | github_tools/github_helpers_test.py | 103 | def test_execute_and_paginate_one_page(self): |
| LOW | github_tools/github_helpers_test.py | 115 | def test_execute_and_paginate_one_page_count_mismatch(self): |
| LOW | github_tools/github_helpers_test.py | 126 | def test_execute_and_paginate_two_page(self): |
| LOW | github_tools/github_helpers_test.py | 146 | def test_execute_and_paginate_first_page_done(self): |
| LOW | github_tools/github_helpers_test.py | 160 | def test_execute_and_paginate_first_page_continue(self): |
| LOW | scripts/bench_runner.py | 777 | def get_benchmark_names_and_metrics( |
| LOW | scripts/bench_runner.py | 852 | def collect_benchmark_metrics( |
| LOW | proposals/scripts/new_proposal_test.py | 18 | def test_calculate_branch_short(self): |
| LOW | proposals/scripts/new_proposal_test.py | 24 | def test_calculate_branch_long(self): |
| LOW | proposals/scripts/new_proposal_test.py | 33 | def test_calculate_branch_flag(self): |
| LOW | proposals/scripts/check_proposal_names_test.py | 35 | def test_rename_file_and_directory(self) -> None: |
| LOW | proposals/scripts/check_proposal_names_test.py | 93 | def test_update_directory_references(self) -> None: |
| LOW | proposals/scripts/check_proposal_names_test.py | 125 | def test_relative_path_rename(self) -> None: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | website/prebuild.py | 75 | |
| LOW | …kills/summarize_testdata_changes/scripts/parse_diff.py | 12 | |
| LOW | bazel/version/gen_tmpl.py | 52 | |
| LOW | github_tools/check_dependent_pr.py | 189 | |
| LOW | github_tools/check_dependent_pr.py | 286 | |
| LOW | github_tools/pr_comments.py | 306 | |
| LOW | scripts/source_stats.py | 109 | |
| LOW | scripts/fix_cc_deps.py | 132 | |
| LOW | scripts/fix_cc_deps.py | 188 | |
| LOW | scripts/fix_cc_deps.py | 217 | |
| LOW | scripts/lldbinit.py | 41 | |
| LOW | scripts/bench_runner.py | 852 | |
| LOW | scripts/bench_runner.py | 975 | |
| LOW | proposals/scripts/check_proposal_names.py | 90 | |
| LOW | toolchain/autoupdate_testdata.py | 23 | |
| LOW | toolchain/runtimes/configure_cmake_file_impl.py | 66 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | common/command_line.h | 175 | // Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod |
| LOW | common/command_line.h | 175 | // Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod |
| LOW | common/filesystem_benchmark.cpp | 32 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod " |
| LOW | common/filesystem_benchmark.cpp | 32 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod " |
| LOW | github_tools/pr_comments_test.py | 44 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| LOW | github_tools/pr_comments_test.py | 44 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| LOW | github_tools/pr_comments_test.py | 47 | " author: Lorem ipsum dolor sit amet, consectetur adipiscing " |
| LOW | github_tools/pr_comments_test.py | 47 | " author: Lorem ipsum dolor sit amet, consectetur adipiscing " |
| LOW | github_tools/pr_comments_test.py | 54 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| LOW | github_tools/pr_comments_test.py | 54 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| LOW | github_tools/pr_comments_test.py | 57 | " author: Lorem ipsum dolor sit amet, consectetur adipiscing " |
| LOW | github_tools/pr_comments_test.py | 57 | " author: Lorem ipsum dolor sit amet, consectetur adipiscing " |
| LOW | github_tools/pr_comments_test.py | 75 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| LOW | github_tools/pr_comments_test.py | 75 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| LOW | github_tools/pr_comments_test.py | 83 | " Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| LOW | github_tools/pr_comments_test.py | 83 | " Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed " |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/workflows/tests.yaml | 33 | # Create a synthetic matrix dimension with the event name for filtering. |
| MEDIUM | proposals/scripts/new_proposal.py | 189 | # Create a proposal branch. |
| MEDIUM | proposals/scripts/new_proposal.py | 228 | # Create a PR with WIP+proposal labels. |
| MEDIUM | toolchain/install/install_test.py | 101 | # Create a test file that we'll preprocess. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | common/array_stack.h | 17 | // Example usage: |
| LOW | common/template_string.h | 24 | // Example usage: |
| LOW | common/struct_reflection.h | 10 | // Example usage: |
| LOW | common/hashing.h | 205 | // Example usage: |
| LOW | toolchain/testing/yaml_test_helpers.h | 11 | // Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | bazel/cc_toolchains/cc_tools_test.py | 54 | except Exception as e: |
| LOW | github_tools/check_dependent_pr.py | 282 | except Exception as e: |
| LOW | scripts/query_module_versions.py | 37 | except Exception as e: |
| LOW | scripts/query_module_versions.py | 58 | except Exception as e: |
| MEDIUM | proposals/scripts/check_proposal_names.py | 157 | print("Error: proposals directory not found.") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | toolchain/check/member_access.cpp | 764 | // Step 1: figure out the type of the associated entity from the interface. |
| LOW | toolchain/check/import_ref.cpp | 4466 | // Step 1: check for a constant value. |
| LOW | toolchain/check/import_ref.cpp | 4473 | // Step 2: resolve the instruction. |
| LOW | toolchain/check/import_ref.cpp | 4486 | // Step 3: pop or retry. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/source_stats.py | 10 | |
| LOW | scripts/bench_runner.py | 58 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/scripts_utils.py | 137 | # Check if there's a cached file that can be used. |