]> granicus.if.org Git - clang/commit
The Visual Studio IDE changed behavior in VS2012. It used to be the case that
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Fri, 7 Mar 2014 00:23:36 +0000 (00:23 +0000)
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Fri, 7 Mar 2014 00:23:36 +0000 (00:23 +0000)
commit51d97fe62165ea4b963166d81fdc8decdf114159
treedc96504f2122bdfd05aeb6f49569f2fb4e5b15af
parent894947e18e682f802276ea4041d932577eada01a
The Visual Studio IDE changed behavior in VS2012. It used to be the case that
the clang diagnostic has to report a column number one less than the correct
value in order for the IDE to move the cursor to the expected location. This
behavior is changed in VS2012 and VS2013 so that the IDE is now expecting the
column number to match the actual source location.
  Before: source(line, column-1): type: message
  After: source(line, column): type: message

This patch changes -fdiagnostics-format=msvc to match the new VS2012 and VS2013
when fmsc-version is 1700 or greater.

Differential Revision: http://llvm-reviews.chandlerc.com/D2949

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203183 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/TextDiagnostic.cpp
test/Misc/diag-format.c