[PATCH] D59874: [PR41247] Fixed parsing of private keyword in C++

2019-03-28 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL357162: [PR41247] Fixed parsing of private keyword in C++. (authored by stulova, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to commit: https://r

[PATCH] D59874: [PR41247] Fixed parsing of private keyword in C++

2019-03-27 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia updated this revision to Diff 192485. Anastasia added a comment. Herald added a subscriber: jdoerfert. Extended test case and explained the intention of the test. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59874/new/ https://reviews.llvm.org/D59874 Files: lib/Parse/Parse

[PATCH] D59874: [PR41247] Fixed parsing of private keyword in C++

2019-03-27 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Otherwise LGTM. Comment at: test/SemaOpenCLCXX/private-access-specifier.cpp:2 +// RUN: %clang_cc1 %s -pedantic -verify -fsyntax-only + +struct B { Please include a comment explaining why this test file is in test/SemaOpenCLCXX/ (becau

[PATCH] D59874: [PR41247] Fixed parsing of private keyword in C++

2019-03-27 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia created this revision. Anastasia added reviewers: rjmccall, jsji. Herald added a subscriber: ebevhan. In C++ `private` shouldn't be parsed as a valid address space keyword. This only fixes C++ part, in OpenCL we should still prevent ICE on the reported code example, but I will fix it s