<table><tr><td style="">aaronpuchert added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15764">View Revision</a></tr></table><br /><div><div><p>Given that <tt style="background: #ebebeb; font-size: 13px;">languageOption</tt> also has <tt style="background: #ebebeb; font-size: 13px;">Q_UNREACHABLE()</tt>, and both are always called together, any crash that could happen would have already happened before. The function is called from <tt style="background: #ebebeb; font-size: 13px;">CompilerProvider::{defines,includes}</tt> and both catch the <tt style="background: #ebebeb; font-size: 13px;">Other</tt> case before calling into the <tt style="background: #ebebeb; font-size: 13px;">ICompiler</tt> implementation. Maybe we should document the constraint (<tt style="background: #ebebeb; font-size: 13px;">type != Utils::Other</tt>) in the <tt style="background: #ebebeb; font-size: 13px;">ICompiler</tt> interface, but we should do it in a separate commit.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15764">https://phabricator.kde.org/D15764</a></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop, aaronpuchert<br /><strong>Cc: </strong>aaronpuchert, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>