diff options
author | Edwin Vane <edwin.vane@intel.com> | 2013-06-18 15:44:58 +0000 |
---|---|---|
committer | Edwin Vane <edwin.vane@intel.com> | 2013-06-18 15:44:58 +0000 |
commit | ba6b32d1ce34dacaca5df11dfb5e460b1445914a (patch) | |
tree | 25b663f04bcef53af13f02efa948e48f296ae65a /clang-tools-extra/test/cpp11-migrate/UseNullptr/basic.cpp | |
parent | 75d8fa51c9894df24e224b61c8b1f2cfbf6fc89d (diff) | |
download | bcm5719-llvm-ba6b32d1ce34dacaca5df11dfb5e460b1445914a.tar.gz bcm5719-llvm-ba6b32d1ce34dacaca5df11dfb5e460b1445914a.zip |
cpp11-migrate: Transforms honour header modification flag
Transforms will now make changes to headers if header modifications have been
enabled.
FIXME: Only UseNullptr contains a cursory header modification test. Other
transforms should have them too.
llvm-svn: 184197
Diffstat (limited to 'clang-tools-extra/test/cpp11-migrate/UseNullptr/basic.cpp')
-rw-r--r-- | clang-tools-extra/test/cpp11-migrate/UseNullptr/basic.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/clang-tools-extra/test/cpp11-migrate/UseNullptr/basic.cpp b/clang-tools-extra/test/cpp11-migrate/UseNullptr/basic.cpp index 03606f6acd3..9057c1a17d7 100644 --- a/clang-tools-extra/test/cpp11-migrate/UseNullptr/basic.cpp +++ b/clang-tools-extra/test/cpp11-migrate/UseNullptr/basic.cpp @@ -1,8 +1,13 @@ +// RUN: mkdir -p %T/Inputs // RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp -// RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/basic.h > %T/basic.h -// RUN: cpp11-migrate -use-nullptr %t.cpp -- -std=c++98 -I %S +// RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/basic.h > %T/Inputs/basic.h +// RUN: cpp11-migrate -use-nullptr %t.cpp -- -std=c++98 -I %T -Wno-non-literal-null-conversion // RUN: FileCheck -input-file=%t.cpp %s -// RUN: FileCheck -input-file=%T/basic.h %S/Inputs/basic.h +// RUN: FileCheck -input-file=%T/Inputs/basic.h %S/Inputs/basic.h +// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp +// RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/basic.h > %T/Inputs/basic.h +// RUN: cpp11-migrate -headers -include=%T -use-nullptr %t.cpp -- -std=c++98 -I %T -Wno-non-literal-null-conversion +// RUN: FileCheck -check-prefix=HEADERS -input-file=%T/Inputs/basic.h %S/Inputs/basic.h #include "Inputs/basic.h" |