]> granicus.if.org Git - clang/commit
Add -cc1 option -fno-diagnostics-use-presumed-location, a handy mode for
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 14 Nov 2012 23:55:25 +0000 (23:55 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 14 Nov 2012 23:55:25 +0000 (23:55 +0000)
commit62221b17c90457df9ca0ff20bb54d634e8951def
treef238d595e59ffcf67ab18861aa918c8431a92c7a
parent1a03b262d0f07d4a3091b0a9b7310100d9bd0aa9
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).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168004 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticOptions.def
include/clang/Basic/SourceManager.h
include/clang/Driver/CC1Options.td
lib/Basic/SourceManager.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/DiagnosticRenderer.cpp
test/Misc/diag-presumed.c [new file with mode: 0644]