]> granicus.if.org Git - clang/commit
Improve error recovery around colon.
authorSerge Pavlov <sepavloff@gmail.com>
Wed, 16 Jul 2014 05:16:52 +0000 (05:16 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Wed, 16 Jul 2014 05:16:52 +0000 (05:16 +0000)
commite5e1acf00b8e268d425f8d054b172007cd4de6b5
tree19926542a447903d74c0aaf3644550c680e6776d
parentc07418530928215c641596875b2996ac386c18e7
Improve error recovery around colon.

Recognize additional cases, when '::' is mistyped as ':'.
This is a fix to RP18587 - colons have too much protection in member-declarations
Review is tracked by http://reviews.llvm.org/D3653.

This is an attempt to recommit the fix, initially committed as r212957 but then
reverted in r212965 as it broke self-build. In the updated patch ParseDirectDeclarator
turns on colon protection in for context as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213120 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
test/SemaCXX/enum-bitfield.cpp
test/SemaCXX/for-range-examples.cpp
test/SemaCXX/nested-name-spec.cpp