diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-06-11 14:14:24 +0000 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-06-11 14:14:24 +0000 |
commit | 8edd8da4874d79e07a6398088d6831b74758dbc2 (patch) | |
tree | 670318825b057b29721c55872b0503cf0c2411e4 /clang/unittests/Frontend/ASTUnitTest.cpp | |
parent | 9487963244e4c805cf0f5798d903bdb10012b59d (diff) | |
download | bcm5719-llvm-8edd8da4874d79e07a6398088d6831b74758dbc2.tar.gz bcm5719-llvm-8edd8da4874d79e07a6398088d6831b74758dbc2.zip |
[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
llvm-svn: 363067
Diffstat (limited to 'clang/unittests/Frontend/ASTUnitTest.cpp')
-rw-r--r-- | clang/unittests/Frontend/ASTUnitTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Frontend/ASTUnitTest.cpp b/clang/unittests/Frontend/ASTUnitTest.cpp index 3228dfbe6e5..9232b7bf7c3 100644 --- a/clang/unittests/Frontend/ASTUnitTest.cpp +++ b/clang/unittests/Frontend/ASTUnitTest.cpp @@ -51,8 +51,8 @@ protected: PCHContainerOps = std::make_shared<PCHContainerOperations>(); return ASTUnit::LoadFromCompilerInvocation( - CInvok, PCHContainerOps, Diags, FileMgr, false, false, 0, TU_Complete, - false, false, isVolatile); + CInvok, PCHContainerOps, Diags, FileMgr, false, CaptureDiagsKind::None, + 0, TU_Complete, false, false, isVolatile); } }; |