<table><tr><td style="">qi437103 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/D5072" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Mostly based on Kevin's <a href="https://phabricator.kde.org/D4930" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: line-through;" rel="noreferrer">D4930</a> for OpenCL parsing.<br />
LLVM has CUDA support since 3.9 [1], though not really good :/<br />
Also added configuration UI for CUDA and OpenCL parser arguments.</p>

<p>[1] <a href="http://releases.llvm.org/3.9.1/docs/CompileCudaWithLLVM.html" class="remarkup-link" target="_blank" rel="noreferrer">http://releases.llvm.org/3.9.1/docs/CompileCudaWithLLVM.html</a></p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested locally with a small CUDA project. It still can't parse perfectly, but at least won't mark everything as error. The language standard settings not actually work though.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>cuda-parsing</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5072" rel="noreferrer">https://phabricator.kde.org/D5072</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>languages/clang/duchain/parsesession.cpp<br />
languages/clang/kdevclangsupport.json<br />
languages/clang/tests/files/cuda.cu<br />
languages/clang/tests/test_files.cpp<br />
languages/plugins/custom-definesandincludes/compilerprovider/settingsmanager.cpp<br />
languages/plugins/custom-definesandincludes/compilerprovider/settingsmanager.h<br />
languages/plugins/custom-definesandincludes/definesandincludesmanager.cpp<br />
languages/plugins/custom-definesandincludes/kcm_widget/parserwidget.cpp<br />
languages/plugins/custom-definesandincludes/kcm_widget/parserwidget.h<br />
languages/plugins/custom-definesandincludes/kcm_widget/parserwidget.ui</div></div></div><br /><div><strong>To: </strong>qi437103, mwolff<br /><strong>Cc: </strong>kdevelop-devel<br /></div>