mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 07:16:07 +00:00

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
8 lines
332 B
C++
8 lines
332 B
C++
#include "ignore-warnings-from-headers.h"
|
|
|
|
void g(int unusedInMainFile) {}
|
|
|
|
// RUN: env CINDEXTEST_IGNORE_NONERRORS_FROM_INCLUDED_FILES=1 c-index-test -test-load-source function %s -Wunused-parameter 2>&1 | FileCheck %s
|
|
// CHECK-NOT: warning: unused parameter 'unusedInHeader'
|
|
// CHECK: warning: unused parameter 'unusedInMainFile'
|