<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylVMFymzAQ_Rq47JgBEez4wMFpmmMvPfQsoQXUColKwo7_vithO3amt4wZhNjdp_f2rRFWntusfM3Kw68RDfRWa3tSZoAJ3YAwIpfoYNa8wwlN8JCxZ63-IPwNgnvM2D5j3-A0okPItuXLZi5GWkF54DA7deThhkKlFNrMdKM64EamkqKb50uJogO8XVyH0CuNETqM3IAy95kr38udtumKofUNq5Xp9CKJEGMHosPY_yIrVcbouY5nT1zFg1K8KIpP8J_OvOnsuDE2gECQGLALKCHYuA0jPkDCSYUxve0W56iV4DEE6rQv7rEP2ls4UbZdtITUacIb-ZG6GMLss5pkvNE1ENwiis5OtNH6eF02s7O_iQhtlfcLenpo6rKqV3y_dJEFD4nKlZs_m8DfQVr0EOVMPAQyjAt7xAd6PyjoF_Ja9Q9atB1UB10iLaJwmXhf8SdLJbP1Xgm9Wgs-4ERq3uBTZ1Mwq1-TRYXQPJlOFlKzN5us_h4nIRY_JF0S4sDQyqVUQVnDf97nkWW3zPtD1-GNau5LdaxdxzIkb92kDLkrzjTY3k4IDgd8p-46nDUJyWVby3295zlfwmhdO3Bxfs8Xp9uvOFftmnxsuWw429GP17UsOXt-7vdlz7r9fltuy6rMNReofZs1LyTQ4AkSRBTbvOZfZ6BaVjJWVlVdsfqp3BZY8abqm13dV2InGpY9lUjjrouIU1g35K5NkGIZPAU1tdF_BDmNwmAQE2FiGFTQ2B7ixwfIgtWBj0G59dovguzorYsj2o3pQ3X3J8sT7TZx_geh3oRa>53175</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Allow addtional file stem regex/subst for matching main include
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          gabyx
      </td>
    </tr>
</table>

<pre>
    
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`

```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 https://github.com/llvm/llvm-project/issues/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?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylU02TmzAM_TVw0YQBE5LNgUO26R576aFnfwhwazC1TbL595XNbjbZ6W1nPPhD0tPTkxBWXdusPGXl8deAE3TWGHvRUw8juh5hQK7QwWy4xBGn4CFjT0b_QfgbBPeYsUPGvsFlQIeQ7crnzVwMtIP2wGF2-szDDYVCybSZ6UNxwCeVQgo5z28hmhJ4uziJ0GmDEToMfAI93XuufN--dE0rmtYXVutJmkURIcaORIex_1lWqozRuY65R65jomQviuIT_KectzolnyYbQCAoDCgDKgg2XsOAD5Bw0WFIr3JxjqQEjyGQ0r64xz4ab-FC3nYxCpLShDfwM6kYwuyzmsp4odUT3CIKaUe6GHN-3zazs7-JCF219wt6OjR1WdUrvl9kZMFDovLOzV-nwF9BWfQQyxl5CNQwLuwZH-j9IKNfqNe6e6jF2F5LkIm0iIWrxPsdf7QUMlvvtTBra8EHHKmaF_ikbDJm9Sm1qBCGp6ZTC0nszSarv8dJiMEPTm8OcWBo50rpoO3Ef977UctunvdJ1-GN1dyHmhi7jmVIvXWjnqi74kqD7e2I4LDHV1LX4WyokFy1tTrUB54HHQy2x_gnAeGtcB9V3wL9Igi7sy7qLYf0191NTL44036l6dW-yYd2xxDL3dN2u93VNVPd_tCVsuRPza5rJB1zwwUa32bNM2kz4QUSRNSpOeW6ZSVjZVXVFau35a7AijdV1-zrrhJ70bBsWyKxNkXkUVjX565NlMTSezIa0s9_GDnNQD8hpnSEz5cwWNf2XFxf85S4TcT_ATDFb1g">