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)
commit0b50cb79ada2f361b11571b56350587012d0f1da
tree47400c99a4c37db7246856c07d2c20f19aa774f1
parenta19a126ee3cdcf304272042a8e29ea841e22e0d4
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
clang/include/clang/Basic/DiagnosticOptions.def
clang/include/clang/Basic/SourceManager.h
clang/include/clang/Driver/CC1Options.td
clang/lib/Basic/SourceManager.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/DiagnosticRenderer.cpp
clang/test/Misc/diag-presumed.c [new file with mode: 0644]