Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update about arguments #61

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ from the configuration file are combined when bazel-compile-commands is called

-a, --arguments

: Also write the array of arguments for each entry in the
`compile_commands.json` file.
: Provided only for backwards compatibility.

-B, --bazel-command **BAZEL**

Expand All @@ -48,6 +47,11 @@ from the configuration file are combined when bazel-compile-commands is called
: Same as `--bazelopt "--config=CONFIG"`. A config option from `.bazelrc` to
apply when querying Bazel for build actions.

--command

: Generate a `compile_commands.json` file with `command` entries instead of
`arguments` entries.

-c, --compiler **FILE**

: Replace the internal Bazel compiler wrapper script with this compiler (useful
Expand Down
1 change: 1 addition & 0 deletions tests/self_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ TEST(self_test, run)

ASSERT_THAT(cu_obj.find("file"), Not(Eq(end)));
EXPECT_THAT(cu_obj.find("directory"), Not(Eq(end)));
EXPECT_THAT(cu_obj.find("command"), Eq(end));
EXPECT_THAT(cu_obj.find("arguments"), Not(Eq(end)));
EXPECT_THAT(cu_obj.find("output"), Not(Eq(end)));

Expand Down
Loading