[clang] [OpenACC} Improve diagnostics for 'tag's on clauses/directives (PR #77957)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 10:56:44 PST 2024


================
@@ -164,6 +164,48 @@ bool isOpenACCSpecialToken(OpenACCSpecialTokenKind Kind, Token Tok) {
   llvm_unreachable("Unknown 'Kind' Passed");
 }
 
+// Used for cases where we have a token we want to check against an
+// 'identifier-like' token, but don't want to give awkward error messages in
+// cases where it is accidentially a keyword.
----------------
alexey-bataev wrote:

```suggestion
/// Used for cases where we have a token we want to check against an
/// 'identifier-like' token, but don't want to give awkward error messages in
/// cases where it is accidentially a keyword.
```

https://github.com/llvm/llvm-project/pull/77957


More information about the cfe-commits mailing list