зеркало из https://github.com/microsoft/clang-1.git
fix a bug in paste avoidance which would cause us to accidentally
form a >>=. Patch by Abramo Bagnara, testcase by me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5832a5390a
Коммит
86851109b8
|
@ -85,7 +85,7 @@ TokenConcatenation::TokenConcatenation(Preprocessor &pp) : PP(pp) {
|
|||
TokenInfo[tok::star ] |= aci_avoid_equal; // *=
|
||||
TokenInfo[tok::exclaim ] |= aci_avoid_equal; // !=
|
||||
TokenInfo[tok::lessless ] |= aci_avoid_equal; // <<=
|
||||
TokenInfo[tok::greaterequal] |= aci_avoid_equal; // >>=
|
||||
TokenInfo[tok::greatergreater] |= aci_avoid_equal; // >>=
|
||||
TokenInfo[tok::caret ] |= aci_avoid_equal; // ^=
|
||||
TokenInfo[tok::equal ] |= aci_avoid_equal; // ==
|
||||
}
|
||||
|
|
|
@ -24,3 +24,7 @@ E: test(str)
|
|||
// Should expand to L "str" not L"str"
|
||||
// CHECK: E: L "str"
|
||||
|
||||
// Should avoid producing >>=.
|
||||
#define equal =
|
||||
F: >>equal
|
||||
// CHECK: F: >> =
|
||||
|
|
Загрузка…
Ссылка в новой задаче