[clang] [docs][clang] refactor diagnostic spec instruction and grammar nit (PR #213432)
Hardik Kumar via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 18 10:00:29 PDT 2026
================
@@ -3612,7 +3612,8 @@ int A = B; // expected-error {{use of undeclared identifier 'B'}}
```
You can place as many diagnostics on one line as you wish. To make the code
-more readable, you can use slash-newline to separate out the diagnostics.
+more readable, you can use back-slash to separate out the diagnostics into
----------------
hardikxk wrote:
> it still needs to be plural 'backslashes' though
Yes, I already updated that in the last commit
> just a random backslash somewhere else isn't gonna do anything, so 'line continuation' would be a bit more precise I think
Thats true but since the statement is already talking about separating diagnostics into multiple lines I feel it makes sense as is. But let me know if you'd suggest doing it differently so I will just change it accordingly.
https://github.com/llvm/llvm-project/pull/213432
More information about the cfe-commits
mailing list