Skip to content

compdb: handling header-only cc_library better#10583

Merged
lizan merged 4 commits intoenvoyproxy:masterfrom
lizan:tidy_fix
Mar 31, 2020
Merged

compdb: handling header-only cc_library better#10583
lizan merged 4 commits intoenvoyproxy:masterfrom
lizan:tidy_fix

Conversation

@lizan
Copy link
Copy Markdown
Member

@lizan lizan commented Mar 31, 2020

Signed-off-by: Lizan Zhou lizan@tetrate.io

Description:
Conditionally add emtpy.cc to cc_library to get a complete compile database. Improve docs as well.

Risk Level: Low (clang-tidy only)
Testing: local

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Comment thread tools/gen_compilation_database.py Outdated
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@lambdai
Copy link
Copy Markdown
Contributor

lambdai commented Mar 31, 2020

Honestly I don't understand what the role compilation database plays here. My impression is that both this PR and another attempt is to signal the toolchain that it's compiling C++ code and it LGTM

I am sorry I cannot reproduce at my local because it never fail on my machine even without this PR :(

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks.

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@lizan lizan merged commit 4e1f9f9 into envoyproxy:master Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants