<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Libclang not recognizing -Wno-unused-command-line-argument"
   href="https://llvm.org/bugs/show_bug.cgi?id=22913">22913</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Libclang not recognizing -Wno-unused-command-line-argument
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libclang
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>peetlugen19@yandex.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Basically libclang is ignoring the "-Wno-unused-command-line-argument"
commandline switch. When using "-Wno-unused-command-line-argument" with clang
it's not showing warnings anymore...

===============================
clang -std=c++11 -Wall -nostdinc -nostdinc++ -fsyntax-only -I "C:\Program Files
(x86)\Microsoft Visual Studio 12.0\VC\include"
test.cpp
clang.exe: warning: argument unused during compilation: '-nostdinc++'
===============================
clang -std=c++11 -Wall -nostdinc -nostdinc++ -fsyntax-only
-Wno-unused-command-line-argument -I "C:\Program Files (x86)\Microsoft Visual
Studio 12.0\VC\include"
test.cpp
===============================
cflags = CXTranslationUnit_DetailedPreprocessingRecord
        | CXTranslationUnit_CacheCompletionResults
        | CXTranslationUnit_PrecompiledPreamble
        | CXTranslationUnit_Incomplete;

    cargs.push_back("-std=c++11");
    cargs.push_back("-Wall");
    //cargs.push_back("-xc++");
    cargs.push_back("-nostdinc");
    cargs.push_back("-nostdinc++");
    cargs.push_back("-Wno-unused-command-line-argument");

    // VC++ Compiler == Rubbish
    cargs.push_back("-fms-extensions");
    cargs.push_back("-fmsc-version=1800");
    cargs.push_back("-fdelayed-template-parsing");
    cargs.push_back("-ferror-limit=1000");

    cargs.push_back("-IC:\\Program Files (x86)\\Microsoft Visual Studio
12.0\\VC\\include");

    if(clang_parseTranslationUnit2(cindex, filename.c_str(), cargs.data(),
cargs.size(), cunfiles.data(), cunfiles.size(), cflags, &ctu)
        == CXError_Success)

clang_getDiagnostic(ctu, 0); // == warning: argument unused during compilation:
'-nostdinc++'
===============================</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>