diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-26 02:40:48 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-26 02:40:48 +0000 |
commit | 61d679ab2831b161c857cf3f974312fbd4ef1efd (patch) | |
tree | 28dca5905a35f13993ff40bb855b1fee35af08a9 /test | |
parent | 7a776bec0232a5bf63b8d655194c18a201e5ee47 (diff) |
Introduce 3 new fixit options:
-fixit-recompile
applies fixits and recompiles the result
-fixit-to-temporary
applies fixits to temporary files
-fix-only-warnings">,
applies fixits for warnings only, not errors
Combining "-fixit-recompile -fixit-to-temporary" allows testing the result of fixits
without touching the original sources.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/FixIt/fixit-recompile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/FixIt/fixit-recompile.c b/test/FixIt/fixit-recompile.c new file mode 100644 index 0000000000..a2e62fbddc --- /dev/null +++ b/test/FixIt/fixit-recompile.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -Werror -pedantic %s -fixit-recompile -fixit-to-temporary -E -o - | FileCheck %s +// RUN: not %clang_cc1 -Werror -pedantic %s -fixit-recompile -fixit-to-temporary -fix-only-warnings + +_Complex cd; + +// CHECK: _Complex double cd; |