diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-10-29 02:24:45 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-10-29 02:24:45 +0000 |
| commit | 945577ce93b5c5be22f927741cd66daab088d9bc (patch) | |
| tree | 38f4e1f3b482db751d5c6a68fea98d215c617f85 /clang/lib | |
| parent | b0b18615e2d31ab10270723c4fdfcaa34cf3e8cc (diff) | |
| download | bcm5719-llvm-945577ce93b5c5be22f927741cd66daab088d9bc.tar.gz bcm5719-llvm-945577ce93b5c5be22f927741cd66daab088d9bc.zip | |
PR5328: Allow duplicatic -pedantic (and -pedantic-errors) options.
- clang-cc doesn't care about their relative order with other -W options.
llvm-svn: 85473
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 7bc83e84c6c..85f79d807f3 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -757,7 +757,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, A->render(Args, CmdArgs); } - Args.AddAllArgs(CmdArgs, options::OPT_W_Group, options::OPT_pedantic_Group); + Args.AddAllArgs(CmdArgs, options::OPT_W_Group); + Args.AddLastArg(CmdArgs, options::OPT_pedantic); + Args.AddLastArg(CmdArgs, options::OPT_pedantic_errors); Args.AddLastArg(CmdArgs, options::OPT_w); // Handle -{std, ansi, trigraphs} -- take the last of -{std, ansi} |

