Skip to content

Remove compilation_database.bxl include path hack#1278

Open
cbarrete wants to merge 1 commit into
facebook:mainfrom
cbarrete:remove-comp-db-hack
Open

Remove compilation_database.bxl include path hack#1278
cbarrete wants to merge 1 commit into
facebook:mainfrom
cbarrete:remove-comp-db-hack

Conversation

@cbarrete

@cbarrete cbarrete commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

This was a bad hack, which was broken in the presence of header namespaces (in which case -I . would not put the actual headers in the include path, causing random jumps to buck-out anyway).

The correct fix is to use header maps, which integrate correctly with Clang-based tooling, and provide accurate jumping to the source tree. This commit also adds some documentation about this.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 1, 2026
@meta-codesync

meta-codesync Bot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D99027997. (Because this pull request was imported automatically, there will not be any future comments.)

@cbarrete

Copy link
Copy Markdown
Contributor Author

@cjhopman, do you think you could get someone internally to take a look at this?
The CI failures are unrelated.
Thanks!

@cbarrete

cbarrete commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

@Nero5023 maybe?

@cbarrete cbarrete force-pushed the remove-comp-db-hack branch from 5f1c4be to 6d06582 Compare May 23, 2026 16:01
This was a bad hack, which was broken in the presence of header
namespaces (in which case `-I .` would not put the actual headers in the
include path, causing random jumps to `buck-out` anyway).

The correct fix is to use header maps, which integrate correctly with
Clang-based tooling, and provide accurate jumping to the source tree.
This commit also adds some documentation about this.
@cbarrete cbarrete force-pushed the remove-comp-db-hack branch from 6d06582 to d800201 Compare June 1, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant