[LLVMbugs] [Bug 22913] New: Libclang not recognizing -Wno-unused-command-line-argument
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Mar 15 08:31:19 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=22913
Bug ID: 22913
Summary: Libclang not recognizing
-Wno-unused-command-line-argument
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: unassignedclangbugs at nondot.org
Reporter: peetlugen19 at yandex.com
CC: klimek at google.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
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++'
===============================
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150315/91cd782a/attachment.html>
More information about the llvm-bugs
mailing list