]> granicus.if.org Git - clang/commit
In Microsoft mode, downgrade "goto into protected scope" from error to warning if...
authorFrancois Pichet <pichet2000@gmail.com>
Tue, 13 Sep 2011 10:26:51 +0000 (10:26 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Tue, 13 Sep 2011 10:26:51 +0000 (10:26 +0000)
commitc985b88efc9188845952ab524fe6d4717705257b
tree74266fe64ba1dea6a92dd7da1f8eb748ffc49994
parente05ee6df356c25e792b0334d7a4dec3fe4f79f07
In Microsoft mode, downgrade "goto into protected scope" from error to warning if we are jumping over a variable initialization via a goto.

This fixes a few errors when parsing MFC code with clang.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139595 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/JumpDiagnostics.cpp
test/SemaCXX/MicrosoftExtensions.cpp