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/tools/c-index-test/core_main.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/tools/c-index-test/core_main.cpp')
-rw-r--r-- | clang/tools/c-index-test/core_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/core_main.cpp b/clang/tools/c-index-test/core_main.cpp index 90bfbd9ed61..d465b08b59e 100644 --- a/clang/tools/c-index-test/core_main.cpp +++ b/clang/tools/c-index-test/core_main.cpp @@ -264,7 +264,7 @@ static bool printSourceSymbolsFromModule(StringRef modulePath, modulePath, *pchRdr, ASTUnit::LoadASTOnly, Diags, FileSystemOpts, /*UseDebugInfo=*/false, /*OnlyLocalDecls=*/true, None, - /*CaptureDiagnostics=*/false, + CaptureDiagsKind::None, /*AllowPCHWithCompilerErrors=*/true, /*UserFilesAreVolatile=*/false); if (!AU) { |