[clang] [clang-format] Handle C++ Core Guidelines suppression tags (PR #86458)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 25 20:56:18 PDT 2024
================
@@ -4827,6 +4827,10 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine &Line,
Right.is(TT_TemplateOpener)) {
return true;
}
+ if (Left.is(tok::identifier) && Right.is(tok::numeric_constant) &&
+ Right.TokenText[0] == '.') {
----------------
owenca wrote:
Yes, or else `type 5` would be merged into a single token `type5`.
https://github.com/llvm/llvm-project/pull/86458
More information about the cfe-commits
mailing list