Skip to content

Commit

Permalink
.hpp exclusions
Browse files Browse the repository at this point in the history
Summary: Same patterns as for .h.

Reviewed By: dmpolukhin

Differential Revision: D66100293

fbshipit-source-id: b7f5b8ff3a3c87f94eeb8dfdf2398b6fbd45dcd2
  • Loading branch information
Nhat Minh Le authored and facebook-github-bot committed Nov 19, 2024
1 parent e5ebd48 commit 3a78a72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cxx/compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -728,13 +728,13 @@ def _get_import_filename(ctx: AnalysisContext, group_name: str) -> str:
def _is_standalone_header(header: CHeader) -> bool:
if header.artifact.extension not in HeaderExtension.values():
return False
if header.name.endswith("-inl.h"):
if header.name.endswith("-inl.h") or header.name.endswith("-inl.hpp"):
return False
if header.name.endswith(".tcc"):
return False
if header.name.endswith("-pre.h"):
if header.name.endswith("-pre.h") or header.name.endswith("-pre.hpp"):
return False
if header.name.endswith("-post.h"):
if header.name.endswith("-post.h") or header.name.endswith("-post.hpp"):
return False
return True

Expand Down

0 comments on commit 3a78a72

Please sign in to comment.