<div dir="ltr">sorry, gmail misinterpreted my finger motions....</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 13, 2017 at 10:32 AM, Maurizio Vitale <span dir="ltr"><<a href="mailto:mrz.vtl@gmail.com" target="_blank">mrz.vtl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">we're planning for a tool that generates a clang compilation database from our byzantine build system.<div><br><div><pre style="overflow-x:auto;overflow-y:hidden;border-color:rgb(12,55,98);border-style:dotted;border-width:thin;margin-top:0px;margin-bottom:12px;padding:0.8em;background-color:rgb(240,240,240);color:rgb(51,51,51)">file.gen: file.src
cp file.src file.gen
exe: file.o
gcc -o exe file.o
file.o:</pre><div><br></div><div><pre style="overflow-x:auto;overflow-y:hidden;border-color:rgb(12,55,98);border-style:dotted;border-width:thin;margin-top:0px;margin-bottom:12px;padding:0.8em;background-color:rgb(240,240,240);color:rgb(51,51,51)"><span class="m_-4906794914700136491gmail-p">[</span>
<span class="m_-4906794914700136491gmail-p">{</span> <span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"directory"</span><span class="m_-4906794914700136491gmail-p">:</span> <span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"/home/user/llvm/build"</span><span class="m_-4906794914700136491gmail-p">,</span>
<span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"command"</span><span class="m_-4906794914700136491gmail-p">:</span> <span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"/usr/bin/clang++ -Irelative -DSOMEDEF=</span><span class="m_-4906794914700136491gmail-se" style="color:rgb(64,112,160);font-weight:bold">\"</span><span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">With spaces, quotes and </span><span class="m_-4906794914700136491gmail-se" style="color:rgb(64,112,160);font-weight:bold">\\</span><span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">-es.</span><span class="m_-4906794914700136491gmail-se" style="color:rgb(64,112,160);font-weight:bold">\"</span><span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)"> -c -o file.o file.cc"</span><span class="m_-4906794914700136491gmail-p">,</span>
<span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"file"</span><span class="m_-4906794914700136491gmail-p">:</span> <span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"file.cc"</span> <span class="m_-4906794914700136491gmail-p">},</span>
<span class="m_-4906794914700136491gmail-o" style="color:rgb(102,102,102)">...</span>
<span class="m_-4906794914700136491gmail-p">]</span></pre><div><br></div><div><pre style="overflow-x:auto;overflow-y:hidden;border-color:rgb(12,55,98);border-style:dotted;border-width:thin;margin-top:0px;margin-bottom:12px;padding:0.8em;background-color:rgb(240,240,240);color:rgb(51,51,51)"><span class="m_-4906794914700136491gmail-p">[</span>
<span class="m_-4906794914700136491gmail-p">{</span> <span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"directory"</span><span class="m_-4906794914700136491gmail-p">:</span> <span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"/home/user/llvm/build"</span><span class="m_-4906794914700136491gmail-p">,</span>
<span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"command"</span><span class="m_-4906794914700136491gmail-p">:</span> <span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"/usr/bin/clang++ -Irelative -DSOMEDEF=</span><span class="m_-4906794914700136491gmail-se" style="color:rgb(64,112,160);font-weight:bold">\"</span><span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">With spaces, quotes and </span><span class="m_-4906794914700136491gmail-se" style="color:rgb(64,112,160);font-weight:bold">\\</span><span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">-es.</span><span class="m_-4906794914700136491gmail-se" style="color:rgb(64,112,160);font-weight:bold">\"</span><span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)"> -c -o file.o file.cc"</span><span class="m_-4906794914700136491gmail-p">,</span>
<span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"file"</span><span class="m_-4906794914700136491gmail-p">:</span> <span class="m_-4906794914700136491gmail-s2" style="color:rgb(64,112,160)">"file.cc"</span> <span class="m_-4906794914700136491gmail-p">},</span>
<span class="m_-4906794914700136491gmail-o" style="color:rgb(102,102,102)">...</span>
<span class="m_-4906794914700136491gmail-p">]</span></pre></div></div></div></div></div>
</blockquote></div><br></div>