Skip to content

Allow addtional file stem regex/subst for matching main include #53175

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

Open
gabyx opened this issue Jan 13, 2022 · 1 comment
Open

Allow addtional file stem regex/subst for matching main include #53175

gabyx opened this issue Jan 13, 2022 · 1 comment
Labels
clang-format enhancement Improving things as opposed to bug fixing, e.g. new or missing feature

Comments

@gabyx
Copy link

gabyx commented Jan 13, 2022

When following merge header placements (like qtbase), where B-p.h is a private header (-p) and B.cpp is its source file, than in B.cpp

#include "A.h"
#include "B-p.h" # is main include...

B-p.h cannot be detected to be the main include with the current settings.

Also we would like to have #53013
such that the include syntax does not matter above.

Not sure if the current logic could be made to include more possible file stems?

file = "B.bla.cpp" --> stem = "B.bla" , additionaStem = "B-p.bla"

where the additionalStem ist determined by a some regex/repl?

@mydeveloperday mydeveloperday added clang-format enhancement Improving things as opposed to bug fixing, e.g. new or missing feature and removed new issue labels Jan 17, 2022
@llvmbot
Copy link
Member

llvmbot commented Jan 17, 2022

@llvm/issue-subscribers-clang-format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang-format enhancement Improving things as opposed to bug fixing, e.g. new or missing feature
Projects
None yet
Development

No branches or pull requests

3 participants