1 // RUN: cp %S/Inputs/modernize-pass-by-value/header.h %T/pass-by-value-header.h
2 // RUN: clang-tidy %s -checks='-*,modernize-pass-by-value' -header-filter='.*' -fix -- -std=c++11 -I %T | FileCheck %s -check-prefix=CHECK-MESSAGES -implicit-check-not="{{warning|error}}:"
3 // RUN: FileCheck -input-file=%T/pass-by-value-header.h %s -check-prefix=CHECK-FIXES
4 
5 #include "pass-by-value-header.h"
6 // CHECK-MESSAGES: :8:5: warning: pass by value and use std::move [modernize-pass-by-value]
7 // CHECK-FIXES: #include <utility>
8 // CHECK-FIXES: A(ThreadId tid) : threadid(std::move(tid)) {}
9