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 | 24e9afff4345b331c8eab721741c3d6cf6600bbf (patch) | |
| tree | 448a5967ebb13639c601d69768120328419d6702 /clang/test/FixIt | |
| parent | 7b878febf1bb8bec97f0ed55d5c09298b329ad12 (diff) | |
| download | bcm5719-llvm-24e9afff4345b331c8eab721741c3d6cf6600bbf.tar.gz bcm5719-llvm-24e9afff4345b331c8eab721741c3d6cf6600bbf.zip | |
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.
llvm-svn: 149027
Diffstat (limited to 'clang/test/FixIt')
| -rw-r--r-- | clang/test/FixIt/fixit-recompile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit-recompile.c b/clang/test/FixIt/fixit-recompile.c new file mode 100644 index 00000000000..a2e62fbddcd --- /dev/null +++ b/clang/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; |

