[PATCH] D124487: [HLSL] Adjust access specifier behavior

2022-04-28 Thread Chris Bieneman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG0d6b574b8717: [HLSL] Adjust access specifier behavior (authored by beanz). Changed prior to commit: https://reviews.llvm.org/D124487?vs=425678&id=425799#toc Repository: rG LLVM Github Monorepo CHANG

[PATCH] D124487: [HLSL] Adjust access specifier behavior

2022-04-28 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang-tools-extra/test/clang-apply-replacements/Inputs/crlf/crlf.cpp:1 - -// This file intentionally uses a CRLF newlines! - -void foo() { - int *x = 0; -} + +// This file intentionally uses a CRLF newlines! aaron.ballma

[PATCH] D124487: [HLSL] Adjust access specifier behavior

2022-04-28 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM aside from whitespace changes. Comment at: clang-tools-extra/test/clang-apply-replacements/Inputs/crlf/crlf.cpp:1 - -// This file intentionally uses a CRL

[PATCH] D124487: [HLSL] Adjust access specifier behavior

2022-04-27 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 425678. beanz added a comment. Herald added a project: clang-tools-extra. Updates based on PR feedback. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124487/new/ https://reviews.llvm.org/D124487 Files: clang-t

[PATCH] D124487: [HLSL] Adjust access specifier behavior

2022-04-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/include/clang/Basic/DiagnosticParseKinds.td:1603 +def ext_hlsl_access_specifiers : ExtWarn< + "access specifiers are a clang HLSL extension">; This also needs to go into a warning group.

[PATCH] D124487: [HLSL] Adjust access specifier behavior

2022-04-26 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added inline comments. Comment at: clang/test/ParserHLSL/access_specifiers.hlsl:8 +private: + // expected-note@+2 {{declared private here}} + // expected-note@+1 {{declared private here}} May need tests for `protected:` and `public:`, and possibly for `

[PATCH] D124487: [HLSL] Adjust access specifier behavior

2022-04-26 Thread Chris Bieneman via Phabricator via cfe-commits
beanz created this revision. beanz added reviewers: aaron.ballman, MaskRay, kuhar, rsmith. Herald added subscribers: Anastasia, StephenFan. Herald added a project: All. beanz requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. HLSL doesn't supp