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

clang-scan-deps fails on ut.hpp #610

Open
tambry opened this issue Jan 7, 2024 · 0 comments
Open

clang-scan-deps fails on ut.hpp #610

tambry opened this issue Jan 7, 2024 · 0 comments

Comments

@tambry
Copy link
Contributor

tambry commented Jan 7, 2024

Expected Behavior

/usr/bin/clang-scan-deps -format=p1689 -- /usr/bin/clang++ -x c++ include/boost/ut.hpp works.

Actual Behavior

raul@dev1:~/vehicle/common/build$ /usr/bin/clang-scan-deps -format=p1689 -- /usr/bin/clang++ -x c++ /usr/include/boost/ut.hpp
Error while scanning dependencies for /usr/include/boost/ut.hpp:
/usr/include/boost/ut.hpp:19:2: error: unterminated conditional directive
{
  "revision": 0,
  "rules": [],
  "version": 1
}

Steps to Reproduce the Problem

  1. /usr/bin/clang-scan-deps -format=p1689 -- /usr/bin/clang++ -x c++ include/boost/ut.hpp

Specifications

  • Version: LLVM tip-of-tree from 2024-01-02
  • Platform: Debian
  • Subsystem: x86_64

Additional information

After CMP0155 CMake runs clang-scan-deps for Clang to support modules. However it fails to run on boost-ut's main include file causing build failures when using this library.

I can't see a direct fault with μt, but I'm unsure. Might there be an issue with the library and has this problem come up before, or should I open a bug report in LLVM upstream?

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

No branches or pull requests

1 participant