<table><tr><td style="">arichardson created this revision.<br />Restricted Application added a subscriber: kdevelop-devel.
</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/D5491" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Flags such as <tt style="background: #ebebeb; font-size: 13px;">-fno-exceptions</tt> or <tt style="background: #ebebeb; font-size: 13px;">-target mips64-unknown-freebsd</tt> change the value of lots of defines so should also be added to the compiler invocation that detects the builtin defines. Additionally we also detect the -x flag correctly for some -std=  flags that weren't handled before such as <tt style="background: #ebebeb; font-size: 13px;">cl1.0</tt>.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>New test passes (at least on my system with clang 3.9)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5491" rel="noreferrer">https://phabricator.kde.org/D5491</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>languages/plugins/custom-definesandincludes/compilerprovider/gcclikecompiler.cpp<br />
languages/plugins/custom-definesandincludes/compilerprovider/tests/test_compilerprovider.cpp<br />
languages/plugins/custom-definesandincludes/compilerprovider/tests/test_compilerprovider.h</div></div></div><br /><div><strong>To: </strong>arichardson, KDevelop, kfunk, mwolff<br /><strong>Cc: </strong>kdevelop-devel<br /></div>