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

Summary: Without the function body, we cannot determine is parameter was used. Reviewers: ioeric, sammccall Reviewed By: sammccall Subscribers: arphaman, cfe-commits Differential Revision: https://reviews.llvm.org/D53456 llvm-svn: 345122
9 lines
316 B
C++
9 lines
316 B
C++
// RUN: env CINDEXTEST_SKIP_FUNCTION_BODIES=1 c-index-test -test-load-source all %s -Wunused-parameter 2>&1 \
|
|
// RUN: | FileCheck %s
|
|
|
|
// No 'unused parameter' warnings should be shown when skipping the function bodies.
|
|
inline int foo(int used, int unused) {
|
|
used = 100;
|
|
}
|
|
// CHECK-NOT: warning: unused parameter
|