diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-14 23:55:25 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-14 23:55:25 +0000 |
| commit | 0b50cb79ada2f361b11571b56350587012d0f1da (patch) | |
| tree | 47400c99a4c37db7246856c07d2c20f19aa774f1 /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | a19a126ee3cdcf304272042a8e29ea841e22e0d4 (diff) | |
| download | bcm5719-llvm-0b50cb79ada2f361b11571b56350587012d0f1da.tar.gz bcm5719-llvm-0b50cb79ada2f361b11571b56350587012d0f1da.zip | |
Add -cc1 option -fno-diagnostics-use-presumed-location, a handy mode for
working with preprocessed testcases. This causes source locations in
diagnostics to point at the spelling location instead of the presumed location,
while still keeping the semantic effects of the line directives (entering and
leaving system-header mode, primarily).
llvm-svn: 168004
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
| -rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 31dcb23c49c..1da462abba7 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -538,6 +538,7 @@ bool clang::ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args, Opts.ShowSourceRanges = Args.hasArg(OPT_fdiagnostics_print_source_range_info); Opts.ShowParseableFixits = Args.hasArg(OPT_fdiagnostics_parseable_fixits); + Opts.ShowPresumedLoc = !Args.hasArg(OPT_fno_diagnostics_use_presumed_location); Opts.VerifyDiagnostics = Args.hasArg(OPT_verify); Opts.ElideType = !Args.hasArg(OPT_fno_elide_type); Opts.ShowTemplateTree = Args.hasArg(OPT_fdiagnostics_show_template_tree); |

