]> granicus.if.org Git - clang/commit
[libclang] Allow skipping warnings from all included files
authorNikolai Kosjar <nikolai.kosjar@qt.io>
Tue, 11 Jun 2019 14:14:24 +0000 (14:14 +0000)
committerNikolai Kosjar <nikolai.kosjar@qt.io>
Tue, 11 Jun 2019 14:14:24 +0000 (14:14 +0000)
commitf155583511df18fa507d05cb4e3cf4849715f39d
tree42db21d76608a6ee55c46a6589a73389a8cd240a
parent2293e82f66df72b030a0598638a0e7a8bc4be932
[libclang] Allow skipping warnings from all included files

Depending on the included files and the used warning flags, e.g. -
Weverything, a huge number of warnings can be reported for included
files. As processing that many diagnostics comes with a performance
impact and not all clients are interested in those diagnostics, add a
flag to skip them.

Differential Revision: https://reviews.llvm.org/D48116

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363067 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang-c/Index.h
include/clang/Frontend/ASTUnit.h
lib/Frontend/ASTUnit.cpp
test/Index/ignore-warnings-from-headers.cpp [new file with mode: 0644]
test/Index/ignore-warnings-from-headers.h [new file with mode: 0644]
tools/c-index-test/c-index-test.c
tools/c-index-test/core_main.cpp
tools/libclang/CIndex.cpp
tools/libclang/Indexing.cpp
unittests/Frontend/ASTUnitTest.cpp
unittests/Frontend/PCHPreambleTest.cpp