]> granicus.if.org Git - clang/commit
Omit column info for CodeView by default
authorAdrian McCarthy <amccarth@google.com>
Thu, 25 Aug 2016 18:24:35 +0000 (18:24 +0000)
committerAdrian McCarthy <amccarth@google.com>
Thu, 25 Aug 2016 18:24:35 +0000 (18:24 +0000)
commit939bf1859ca38b30920ed8a304cc6def13bbcee9
treec7800935670639f8b1e971e4b05ef492485d9e9c
parent81d0359a217e045c6cd5cd13f2b7176c8a7d7fd2
Omit column info for CodeView by default

Clang tracks only start columns, not start-end ranges. CodeView allows for that, but the VS debugger doesn't handle anything less than a complete range well--it either highlights the wrong part of a statement or truncates source lines in the assembly view. It's better to have no column information at all.

So by default, we'll omit the column information for CodeView targeting Windows.

Since the column info is still useful for sanitizers, I've promoted -gcolumn-info (and -gno-column-info) to a CoreOption and added a couple tests to make sure that works for clang-cl.

Differential Revision: https://reviews.llvm.org/D23720

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279765 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Driver/Tools.cpp
test/Driver/cl-options.c